]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
filelock: add struct delegated_inode
authorJeff Layton <jlayton@kernel.org>
Tue, 11 Nov 2025 14:12:44 +0000 (09:12 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 08:38:34 +0000 (09:38 +0100)
commit6976ed2dd0d59086d16d853ac9b21776be68aaad
tree6c4989bf6544e0a323291ff7a93b98d1a776bcc7
parent4be9f3cc582a24b08f6580f65fa48a4d70332ab5
filelock: add struct delegated_inode

The current API requires a pointer to an inode pointer. It's easy for
callers to get this wrong. Add a new delegated_inode structure and use
that to pass back any inode that needs to be waited on.

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-3-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/attr.c
fs/namei.c
fs/open.c
fs/posix_acl.c
fs/utimes.c
fs/xattr.c
include/linux/filelock.h
include/linux/fs.h
include/linux/xattr.h