summary refs log tree commit diff
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-06-01 12:58:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-19 16:22:12 +0200
commitf40d621387d43befac244c84022edce2b762bb37 (patch)
tree38928dd54a3768bd6c679a4e98639b9e14e3d0ff /.get_maintainer.ignore
parent10c159f994b985cf0c8b8eb8b851ae9d46a820a8 (diff)
downloadlinux-f40d621387d43befac244c84022edce2b762bb37.tar.gz
fs: Lock moved directories
commit 28eceeda130f5058074dd007d9c59d2e8bc5af2e upstream.

When a directory is moved to a different directory, some filesystems
(udf, ext4, ocfs2, f2fs, and likely gfs2, reiserfs, and others) need to
update their pointer to the parent and this must not race with other
operations on the directory. Lock the directories when they are moved.
Although not all filesystems need this locking, we perform it in
vfs_rename() because getting the lock ordering right is really difficult
and we don't want to expose these locking details to filesystems.

CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230601105830.13168-5-jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions