NFS: Request a directory delegation on ACCESS, CREATE, and UNLINK
authorAnna Schumaker <anna.schumaker@oracle.com>
Tue, 4 Nov 2025 15:06:42 +0000 (10:06 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 23 Nov 2025 21:01:47 +0000 (16:01 -0500)
commit156b0948293362b036caf49e6e4d97cae30201de
treea292ae72e665be64e36c0130ff70fa261c6b4d6a
parent130ae65c01862e1ed30ef5ff2258990d7628f360
NFS: Request a directory delegation on ACCESS, CREATE, and UNLINK

This patch adds a new flag: NFS_INO_REQ_DIR_DELEG to signal that a
directory wants to request a directory delegation the next time it does
a GETATTR. I have the client request a directory delegation when doing
an access, create, or unlink call since these calls indicate that a user
is working with a directory.

Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4proc.c
include/linux/nfs_fs.h
include/linux/nfs_fs_sb.h