mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
xfs: fix the lock annotation in xfs_mru_cache_lookup
Name the actual lock. Unlike sparse, clang wants the annotation to be correct. 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:
parent
2078c2d6e1
commit
b2ae7f2435
|
|
@ -520,7 +520,7 @@ xfs_mru_cache_lookup(
|
|||
if (elem) {
|
||||
list_del(&elem->list_node);
|
||||
_xfs_mru_cache_list_insert(mru, elem);
|
||||
__release(mru_lock); /* help sparse not be stupid */
|
||||
__release(&mru->lock);
|
||||
} else
|
||||
spin_unlock(&mru->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user