summaryrefslogtreecommitdiffstats
path: root/fs/udf/dir.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-01-09 11:00:46 +0100
committerJan Kara <jack@suse.cz>2024-01-23 19:21:10 +0100
commitf6766303c0f2ffbcc640ef2701984a81a274aff2 (patch)
treed1f49cb568e44723cae272ae141fc601d0f69bcc /fs/udf/dir.c
parent249f374eb9b6b969c64212dd860cc1439674c4a8 (diff)
downloadlinux-f6766303c0f2ffbcc640ef2701984a81a274aff2.tar.gz
linux-f6766303c0f2ffbcc640ef2701984a81a274aff2.tar.bz2
linux-f6766303c0f2ffbcc640ef2701984a81a274aff2.zip
udf: Remove GFP_NOFS from dir iteration code
Directory iteration code was using GFP_NOFS allocations in two places. However the code is called only under inode->i_rwsem which is generally safe wrt reclaim. So we can do the allocations with GFP_KERNEL instead. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/dir.c')
-rw-r--r--fs/udf/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/dir.c b/fs/udf/dir.c
index f6533f93851b..f94f45fe2c91 100644
--- a/fs/udf/dir.c
+++ b/fs/udf/dir.c
@@ -67,7 +67,7 @@ static int udf_readdir(struct file *file, struct dir_context *ctx)
pos_valid = true;
}
- fname = kmalloc(UDF_NAME_LEN, GFP_NOFS);
+ fname = kmalloc(UDF_NAME_LEN, GFP_KERNEL);
if (!fname) {
ret = -ENOMEM;
goto out;