]> git.ipfire.org Git - thirdparty/linux.git/commit
ovl: narrow locking in ovl_cleanup_index()
authorNeilBrown <neil@brown.name>
Wed, 16 Jul 2025 00:44:22 +0000 (10:44 +1000)
committerChristian Brauner <brauner@kernel.org>
Fri, 18 Jul 2025 09:10:41 +0000 (11:10 +0200)
commit8290fb412d2f3dced1b744330d22f2d639ccdf36
tree95cc9d19bcfd0eee6eaa52646d24e959c7174a1c
parent7dfb0722ad0740f6fbf9bd184e3ae4ba4bc19f31
ovl: narrow locking in ovl_cleanup_index()

ovl_cleanup_index() takes a lock on the directory and then does a lookup
and possibly one of two different cleanups.
This patch narrows the locking to use the _unlocked() versions of the
lookup and one cleanup, and just takes the lock for the other cleanup.

A subsequent patch will take the lock into the cleanup.

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