From: Carlos Maiolino Date: Mon, 23 Mar 2026 18:33:19 +0000 (-0700) Subject: xfs: fix returned valued from xfs_defer_can_append X-Git-Tag: v7.0.0~60 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=50d29084e53a05b7337b598aa39d7c8c64e9c74b;p=xfsprogs-dev.git xfs: fix returned valued from xfs_defer_can_append Source kernel commit: 54fcd2f95f8d216183965a370ec69e1aab14f5da xfs_defer_can_append returns a bool, it shouldn't be returning a NULL. Found by code inspection. Fixes: 4dffb2cbb483 ("xfs: allow pausing of pending deferred work items") Signed-off-by: Carlos Maiolino Reviewed-by: Darrick J. Wong Acked-by: Souptick Joarder Signed-off-by: Carlos Maiolino --- diff --git a/libxfs/xfs_defer.c b/libxfs/xfs_defer.c index e4d17177..3e36865f 100644 --- a/libxfs/xfs_defer.c +++ b/libxfs/xfs_defer.c @@ -802,7 +802,7 @@ xfs_defer_can_append( /* Paused items cannot absorb more work */ if (dfp->dfp_flags & XFS_DEFER_PAUSED) - return NULL; + return false; /* Already full? */ if (ops->max_items && dfp->dfp_count >= ops->max_items)