mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-04 20:40:55 -06:00
xfs: add lock annotations to xfs_ail_delete*
Pass up the __must_hold as clang requires it, and also fix the formatting of the __must_hold on xfs_ail_check to match how we do it elsewhere. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
committed by
Carlos Maiolino
parent
166089a856
commit
ed4abd8617
@@ -33,7 +33,7 @@ STATIC void
|
||||
xfs_ail_check(
|
||||
struct xfs_ail *ailp,
|
||||
struct xfs_log_item *lip)
|
||||
__must_hold(&ailp->ail_lock)
|
||||
__must_hold(&ailp->ail_lock)
|
||||
{
|
||||
struct xfs_log_item *prev_lip;
|
||||
struct xfs_log_item *next_lip;
|
||||
@@ -321,6 +321,7 @@ static void
|
||||
xfs_ail_delete(
|
||||
struct xfs_ail *ailp,
|
||||
struct xfs_log_item *lip)
|
||||
__must_hold(&ailp->ail_lock)
|
||||
{
|
||||
xfs_ail_check(ailp, lip);
|
||||
list_del(&lip->li_ail);
|
||||
@@ -899,6 +900,7 @@ xfs_lsn_t
|
||||
xfs_ail_delete_one(
|
||||
struct xfs_ail *ailp,
|
||||
struct xfs_log_item *lip)
|
||||
__must_hold(&ailp->ail_lock)
|
||||
{
|
||||
struct xfs_log_item *mlip = xfs_ail_min(ailp);
|
||||
xfs_lsn_t lsn = lip->li_lsn;
|
||||
|
||||
Reference in New Issue
Block a user