summaryrefslogtreecommitdiff
path: root/Documentation/filesystems/fscrypt.rst
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-06-01 13:58:25 +0300
committerChristian Brauner <brauner@kernel.org>2023-06-02 16:00:18 +0300
commit28eceeda130f5058074dd007d9c59d2e8bc5af2e (patch)
tree1b2ccadf12dbd14e5690640972a7916de73cbf8f /Documentation/filesystems/fscrypt.rst
parentf23ce757185319886ca80c4864ce5f81ac6cc9e9 (diff)
downloadlinux-28eceeda130f5058074dd007d9c59d2e8bc5af2e.tar.xz
fs: Lock moved directories
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>
Diffstat (limited to 'Documentation/filesystems/fscrypt.rst')
0 files changed, 0 insertions, 0 deletions