quota: Set nofs allocation context when acquiring dqio_sem
authorJan Kara <jack@suse.cz>
Mon, 22 Jan 2024 12:31:21 +0000 (13:31 +0100)
committerJan Kara <jack@suse.cz>
Tue, 23 Jan 2024 18:21:11 +0000 (19:21 +0100)
commit6c5026c1ef5b57a8d1ddeb6f2bf0c1624d6a849f
tree22c41faebed7ced474c72b3a83ae6570ae142f21
parentc3e637c7f0c9aea051b3e49fc243ad83e19348c6
quota: Set nofs allocation context when acquiring dqio_sem

dqio_sem can be acquired during inode reclaim through dquot_drop() ->
dqput() -> dquot_release() -> write_file_info() context. In some cases
(most notably through dquot_get_next_id()) it can be acquired without
holding dquot->dq_lock (which already sets nofs allocation context). So
we need to set nofs allocation context when acquiring it as well.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ocfs2/quota_global.c
fs/ocfs2/quota_local.c
fs/quota/quota_v1.c
fs/quota/quota_v2.c