]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfs: add try_break_deleg calls for parents to vfs_{link,rename,unlink}
authorJeff Layton <jlayton@kernel.org>
Tue, 11 Nov 2025 14:12:46 +0000 (09:12 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 08:38:35 +0000 (09:38 +0100)
commitb46ebf9a768d39cd69012e15f99b057b52850dbd
treeafb02d17331e734646df0be2709cc5143c875694
parente6d28ebc17eb5e011b80c42a5196af0570c12240
vfs: add try_break_deleg calls for parents to vfs_{link,rename,unlink}

In order to add directory delegation support, we need to break
delegations on the parent whenever there is going to be a change in the
directory.

vfs_link, vfs_unlink, and vfs_rename all have existing delegation break
handling for the children in the rename. Add the necessary calls for
breaking delegations in the parent(s) as well.

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251111-dir-deleg-ro-v6-5-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c