mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
xfs: add lock annotations to xfs_try_open_zone
Improve the __acquires and __releases annotations so that the new clang code that is a bit more picky than sparse is happy. 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
64e1f211d9
commit
912a5b8e34
|
|
@ -475,6 +475,8 @@ static struct xfs_open_zone *
|
|||
xfs_try_open_zone(
|
||||
struct xfs_mount *mp,
|
||||
enum rw_hint write_hint)
|
||||
__releases(&mp->m_zone_info->zi_open_zones_lock)
|
||||
__acquires(&mp->m_zone_info->zi_open_zones_lock)
|
||||
{
|
||||
struct xfs_zone_info *zi = mp->m_zone_info;
|
||||
struct xfs_open_zone *oz;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user