]> Gentwo Git Trees - linux/.git/commit
vfs: break parent dir delegations in open(..., O_CREAT) codepath
authorJeff Layton <jlayton@kernel.org>
Tue, 11 Nov 2025 14:12:49 +0000 (09:12 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 08:38:35 +0000 (09:38 +0100)
commit134796f43a5e6542546841ebecc7465e6f6a96d2
tree738b2261208d795f53c7752c11a8c0e5d66fe170
parent4fa76319cd0cc97ca54ff71c94814dc5b1983ad2
vfs: break parent dir delegations in open(..., O_CREAT) codepath

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.

Add a delegated_inode parameter to lookup_open and have it break the
delegation. Then, open_last_lookups can wait for the delegation break
and retry the call to lookup_open once it's done.

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-8-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c