udf: Avoid GFP_NOFS allocation in udf_symlink()
authorJan Kara <jack@suse.cz>
Tue, 9 Jan 2024 10:06:57 +0000 (11:06 +0100)
committerJan Kara <jack@suse.cz>
Tue, 23 Jan 2024 18:21:10 +0000 (19:21 +0100)
commit2ed0d3d4fee199869e9aef09bc86ceed9d79b978
tree3612b6f245c78baf70497a71201b3c310173e15e
parentf6766303c0f2ffbcc640ef2701984a81a274aff2
udf: Avoid GFP_NOFS allocation in udf_symlink()

The GFP_NOFS allocation in udf_symlink() is called only under
inode->i_rwsem and UDF_I(inode)->i_data_sem. The first is safe wrt
reclaim, the second should be as well but allocating unde this lock is
actually unnecessary. Move the allocation from under i_data_sem and
change it to GFP_KERNEL.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/namei.c