]> git.itanic.dy.fi Git - linux-stable/commit
f2fs: Avoid reading renamed directory if parent does not change
authorJan Kara <jack@suse.cz>
Thu, 12 Oct 2023 21:14:23 +0000 (23:14 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 25 Nov 2023 07:53:20 +0000 (02:53 -0500)
commit7deee77b993a2234acb123b8ec477bd56f2e3be3
treea05789e2675444f83b9622c792634a0e311b474a
parent40dbd071f4b19d9630353c3cd45c2d6adb6799d4
f2fs: Avoid reading renamed directory if parent does not change

The VFS will not be locking moved directory if its parent does not
change.  Change f2fs rename code to avoid reading renamed directory if
its parent does not change.  Having it uninlined while we are reading
it would cause trouble and we won't be able to rely upon ->i_rwsem
on the directory being renamed in cases that do not alter its parent.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/f2fs/namei.c