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

The VFS will not be locking moved directory if its parent does not
change. Change ocfs2 rename code to avoid touching renamed directory if
its parent does not change as without locking that can corrupt the
filesystem.

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