From: Jan Kara Date: Tue, 9 Jan 2024 10:10:14 +0000 (+0100) Subject: udf: Avoid GFP_NOFS allocation in udf_load_pvoldesc() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b27ffdc17c2b4cb93eee37aa7a11487f03a2a8ac;p=linux.git 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 --- diff --git a/fs/udf/super.c b/fs/udf/super.c index 928a04d9d9e0a..0a15ea436fc25 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;