]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cachefiles: change cachefiles_bury_object to use start_renaming_dentry()
authorNeilBrown <neil@brown.name>
Tue, 24 Feb 2026 22:16:55 +0000 (09:16 +1100)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Mar 2026 08:43:03 +0000 (09:43 +0100)
commitdeef04993541a809260cbc40664908761c92fe5d
treed44191d12b5a41ad52f2ac5e2ccb1073ee6c2823
parent2c3a9eb1b4f711c00c4358c16a036a2390d9e57c
cachefiles: change cachefiles_bury_object to use start_renaming_dentry()

Rather then using lock_rename() and lookup_one() etc we can use
the new start_renaming_dentry().  This is part of centralising dir
locking and lookup so that locking rules can be changed.

Some error check are removed as not necessary.  Checks for rep being a
non-dir or IS_DEADDIR and the check that ->graveyard is still a
directory only provide slightly more informative errors and have been
dropped.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-11-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cachefiles/namei.c