mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 02:34:10 -04:00
xfs: Add missing annotation to xfs_ail_check()
Sparse reports a warning at xfs_ail_check() warning: context imbalance in xfs_ail_check() - unexpected unlock The root cause is the missing annotation at xfs_ail_check() Add the missing __must_hold(&ailp->ail_lock) annotation Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
4982bff1ac
commit
daebba1b36
@@ -32,6 +32,7 @@ STATIC void
|
||||
xfs_ail_check(
|
||||
struct xfs_ail *ailp,
|
||||
struct xfs_log_item *lip)
|
||||
__must_hold(&ailp->ail_lock)
|
||||
{
|
||||
struct xfs_log_item *prev_lip;
|
||||
struct xfs_log_item *next_lip;
|
||||
|
||||
Reference in New Issue
Block a user