diff options
author | 2020-02-26 09:37:15 -0800 | |
---|---|---|
committer | 2020-03-02 20:55:51 -0800 | |
commit | daebba1b360963b35167f486e63ef9bfac3ebbfc (patch) | |
tree | 7caafdd1d8fa57fb80d7d76f6c3038c29deddef2 | |
parent | xfs: fix an undefined behaviour in _da3_path_shift (diff) | |
download | linux-daebba1b360963b35167f486e63ef9bfac3ebbfc.tar.gz linux-daebba1b360963b35167f486e63ef9bfac3ebbfc.tar.bz2 linux-daebba1b360963b35167f486e63ef9bfac3ebbfc.zip |
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>
-rw-r--r-- | fs/xfs/xfs_trans_ail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c index 00cc5b8734be..58d4ef1b4c05 100644 --- a/fs/xfs/xfs_trans_ail.c +++ b/fs/xfs/xfs_trans_ail.c @@ -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; |