diff options
author | Jan Kara <jack@suse.cz> | 2024-01-09 13:00:46 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2024-01-23 21:21:10 +0300 |
commit | f6766303c0f2ffbcc640ef2701984a81a274aff2 (patch) | |
tree | d1f49cb568e44723cae272ae141fc601d0f69bcc /fs/udf/namei.c | |
parent | 249f374eb9b6b969c64212dd860cc1439674c4a8 (diff) | |
download | linux-f6766303c0f2ffbcc640ef2701984a81a274aff2.tar.xz |
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/namei.c')
-rw-r--r-- | fs/udf/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 1bb6ed948927..1f14a0621a91 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -59,7 +59,7 @@ static int udf_fiiter_find_entry(struct inode *dir, const struct qstr *child, child->name[0] == '.' && child->name[1] == '.'; int ret; - fname = kmalloc(UDF_NAME_LEN, GFP_NOFS); + fname = kmalloc(UDF_NAME_LEN, GFP_KERNEL); if (!fname) return -ENOMEM; |