summaryrefslogtreecommitdiffstats
path: root/arch/nios2/platform
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-06-01 12:58:24 +0200
committerChristian Brauner <brauner@kernel.org>2023-06-02 15:00:17 +0200
commitf23ce757185319886ca80c4864ce5f81ac6cc9e9 (patch)
treeae04f92b793f5952307ccc1dc00de2a6a06ac757 /arch/nios2/platform
parentcde3c9d7e2a359e337216855dcb333a19daaa436 (diff)
downloadlinux-f23ce757185319886ca80c4864ce5f81ac6cc9e9.tar.gz
linux-f23ce757185319886ca80c4864ce5f81ac6cc9e9.tar.bz2
linux-f23ce757185319886ca80c4864ce5f81ac6cc9e9.zip
fs: Establish locking order for unrelated directories
Currently the locking order of inode locks for directories that are not in ancestor relationship is not defined because all operations that needed to lock two directories like this were serialized by sb->s_vfs_rename_mutex. However some filesystems need to lock two subdirectories for RENAME_EXCHANGE operations and for this we need the locking order established even for two tree-unrelated directories. Provide a helper function lock_two_inodes() that establishes lock ordering for any two inodes and use it in lock_two_directories(). CC: stable@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Message-Id: <20230601105830.13168-4-jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'arch/nios2/platform')
0 files changed, 0 insertions, 0 deletions