mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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: 4dffb2cbb4 ("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>
This commit is contained in:
parent
281cb17787
commit
54fcd2f95f
|
|
@ -809,7 +809,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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user