mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-04 20:40:55 -06: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:
committed by
Carlos Maiolino
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user