Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 4dffb2cbb483 ("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 -1
+1 -1
fs/xfs/libxfs/xfs_defer.c
··· 809 809 810 810 /* Paused items cannot absorb more work */ 811 811 if (dfp->dfp_flags & XFS_DEFER_PAUSED) 812 - return NULL; 812 + return false; 813 813 814 814 /* Already full? */ 815 815 if (ops->max_items && dfp->dfp_count >= ops->max_items)