]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFS: Extend rdirplus mount option with "force|none"
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 13 Mar 2025 17:01:22 +0000 (13:01 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 21 Mar 2025 13:34:52 +0000 (09:34 -0400)
commitcfe1f8776f23fd6dfe4ba9fcb695b129f0761187
tree320d5570466b17a2ab164be827b83709d736c132
parent2d6a194f4b27e0fe524bb6da433d6b0f7032e27d
NFS: Extend rdirplus mount option with "force|none"

There are certain users that wish to force the NFS client to choose
READDIRPLUS over READDIR for a particular mount.  Update the "rdirplus" mount
option to optionally accept values.  For "rdirplus=force", the NFS client
will always attempt to use READDDIRPLUS.  The setting of "rdirplus=none" is
aliased to the existing "nordirplus".

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/c4cf0de4c8be0930b91bc74bee310d289781cd3b.1741885071.git.bcodding@redhat.com
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
fs/nfs/fs_context.c
fs/nfs/super.c
include/linux/nfs_fs_sb.h