quota: use lockdep_assert_held_write in dquot_load_quota_sb
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Aug 2023 11:54:39 +0000 (13:54 +0200)
committerJan Kara <jack@suse.cz>
Thu, 3 Aug 2023 10:00:26 +0000 (12:00 +0200)
commit7a64774add85ce673a089810fae193b02003be24
treed36e9f815c26c5224beec66d07c4fbb041fc320a
parent2363650b22ed3c8bbe7700789e399a77096ac931
quota: use lockdep_assert_held_write in dquot_load_quota_sb

Use lockdep_assert_held_write to assert and self-document the locking
state in dquot_load_quota_sb instead of hand-crafting it with a trylock.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230802115439.2145212-2-hch@lst.de>
fs/quota/dquot.c