mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
xfs: fix the lock annotation on xfs_iget_cache_hit
The newer clang context analysis requires __releases_shared for the RCU pseudo-lock. 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
a23eca8844
commit
cf3a01684f
|
|
@ -497,7 +497,8 @@ xfs_iget_cache_hit(
|
|||
struct xfs_inode *ip,
|
||||
xfs_ino_t ino,
|
||||
int flags,
|
||||
int lock_flags) __releases(RCU)
|
||||
int lock_flags)
|
||||
__releases_shared(RCU)
|
||||
{
|
||||
struct inode *inode = VFS_I(ip);
|
||||
struct xfs_mount *mp = ip->i_mount;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user