linux-stable/fs/quota
Matthew Wilcox (Oracle) a9dc1d3b5b quota: Prevent memory allocation recursion while holding dq_lock
[ Upstream commit 537e11cdc7 ]

As described in commit 02117b8ae9 ("f2fs: Set GF_NOFS in
read_cache_page_gfp while doing f2fs_quota_read"), we must not enter
filesystem reclaim while holding the dq_lock.  Prevent this more generally
by using memalloc_nofs_save() while holding the lock.

Link: https://lore.kernel.org/r/20220605143815.2330891-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-22 14:27:51 +02:00
..
Kconfig quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
Makefile quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
compat.h quota: simplify the quotactl compat handling 2020-09-17 13:00:46 -04:00
dquot.c quota: Prevent memory allocation recursion while holding dq_lock 2022-06-22 14:27:51 +02:00
kqid.c
netlink.c
quota.c mm: don't include <linux/blk-cgroup.h> in <linux/writeback.h> 2021-10-18 06:17:01 -06:00
quota_tree.c quota: correct error number in free_dqentry() 2021-10-11 10:57:04 +02:00
quota_tree.h
quota_v1.c
quota_v2.c quota: Fix memory leak when handling corrupted quota file 2021-01-05 14:42:18 +01:00
quotaio_v1.h
quotaio_v2.h