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

The VFS will not be locking moved directory if its parent does not
change. Change reiserfs 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/reiserfs/namei.c