Re: [PATCH 1/2] liveupdate: Use refcount_t for FLB reference counts
From: Samiullah Khawaja
Date: Thu Apr 23 2026 - 15:58:34 EST
On Thu, Apr 23, 2026 at 05:40:28PM +0000, David Matlack wrote:
Use refcount_t instead of a raw integer to keep track of references on
incoming and outgoing FLBs. Using refcount_t provides protection from
overflow, underflow, and other issues.
Fixes: cab056f2aae7 ("liveupdate: luo_flb: introduce File-Lifecycle-Bound global state")
Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx>
---
include/linux/liveupdate.h | 3 ++-
kernel/liveupdate/luo_flb.c | 22 ++++++++++------------
2 files changed, 12 insertions(+), 13 deletions(-)
Reviewed-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>