]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nfsd: wire up GET_DIR_DELEGATION handling
authorJeff Layton <jlayton@kernel.org>
Tue, 11 Nov 2025 14:12:57 +0000 (09:12 -0500)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Nov 2025 08:38:37 +0000 (09:38 +0100)
commit8b99f6a8c116f664a6788737705f6da2772cc96a
tree704425ad2967f99fca430eee34574cace3f63a38
parent80c8afddc8b17bf9b6cfe3af0d0b41b42f308961
nfsd: wire up GET_DIR_DELEGATION handling

Add a new routine for acquiring a read delegation on a directory. These
are recallable-only delegations with no support for CB_NOTIFY. That will
be added in a later phase.

Since the same CB_RECALL/DELEGRETURN infrastructure is used for regular
and directory delegations, a normal nfs4_delegation is used to represent
a directory delegation.

Reviewed-by: NeilBrown <neil@brown.name>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20251111-dir-deleg-ro-v6-16-52f3feebb2f2@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h