]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ovl: narrow locking in ovl_check_rename_whiteout()
authorNeilBrown <neil@brown.name>
Wed, 16 Jul 2025 00:44:30 +0000 (10:44 +1000)
committerChristian Brauner <brauner@kernel.org>
Fri, 18 Jul 2025 09:10:43 +0000 (11:10 +0200)
commit09d56cc88c247036da5756fd552f2cb2af8d8c5e
treeec1b1d3e5d28c55566ada68bdcd2398460062dfb
parent8afa0a736713898f04d52abad69c07caa2c2f227
ovl: narrow locking in ovl_check_rename_whiteout()

ovl_check_rename_whiteout() now only holds the directory lock when
needed, and takes it again if necessary.

This makes way for future changes where locks are taken on individual
dentries rather than the whole directory.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-20-neil@brown.name
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/overlayfs/super.c