From b27ffdc17c2b4cb93eee37aa7a11487f03a2a8ac Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Tue, 9 Jan 2024 11:10:14 +0100 Subject: udf: Avoid GFP_NOFS allocation in udf_load_pvoldesc() udf_load_pvoldesc() is called only during mount when it is safe to enter fs reclaim (we hold only s_umount semaphore). Change GFP_NOFS to GFP_KERNEL allocation. Signed-off-by: Jan Kara --- fs/udf/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/udf/super.c b/fs/udf/super.c index 928a04d9d9e0..0a15ea436fc2 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -864,7 +864,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block) int ret; struct timestamp *ts; - outstr = kmalloc(128, GFP_NOFS); + outstr = kmalloc(128, GFP_KERNEL); if (!outstr) return -ENOMEM; -- cgit v1.2.3