Skip to content

Commit 54fcd2f

Browse files
committed
xfs: fix returned valued from xfs_defer_can_append
xfs_defer_can_append returns a bool, it shouldn't be returning a NULL. Found by code inspection. Fixes: 4dffb2c ("xfs: allow pausing of pending deferred work items") Cc: <stable@vger.kernel.org> # v6.8 Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Acked-by: Souptick Joarder <souptick.joarder@hpe.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 281cb17 commit 54fcd2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/libxfs/xfs_defer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ xfs_defer_can_append(
809809

810810
/* Paused items cannot absorb more work */
811811
if (dfp->dfp_flags & XFS_DEFER_PAUSED)
812-
return NULL;
812+
return false;
813813

814814
/* Already full? */
815815
if (ops->max_items && dfp->dfp_count >= ops->max_items)

0 commit comments

Comments
 (0)