Skip to content

Commit b27ffdc

Browse files
committed
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 <[email protected]>
1 parent 2ed0d3d commit b27ffdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/udf/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
864864
int ret;
865865
struct timestamp *ts;
866866

867-
outstr = kmalloc(128, GFP_NOFS);
867+
outstr = kmalloc(128, GFP_KERNEL);
868868
if (!outstr)
869869
return -ENOMEM;
870870

0 commit comments

Comments
 (0)