提交 daebba1b 编写于 作者: J Jules Irenge 提交者: Darrick J. Wong

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: NJules Irenge <jbi.octave@gmail.com>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 4982bff1
...@@ -32,6 +32,7 @@ STATIC void ...@@ -32,6 +32,7 @@ STATIC void
xfs_ail_check( xfs_ail_check(
struct xfs_ail *ailp, struct xfs_ail *ailp,
struct xfs_log_item *lip) struct xfs_log_item *lip)
__must_hold(&ailp->ail_lock)
{ {
struct xfs_log_item *prev_lip; struct xfs_log_item *prev_lip;
struct xfs_log_item *next_lip; struct xfs_log_item *next_lip;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册