summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorPatrick J. LoPresti <lopresti@gmail.com>2010-08-11 01:28:01 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-08-11 01:28:01 +0400
commit9b00c64318cc337846a7a08a5678f5f19aeff188 (patch)
tree1b7248353da1c229adf2b926c2048f88513e556f /fs/nfs
parentf5a73672d1811f2fb1dcb62ca90ceb12b2050ae7 (diff)
downloadlinux-9b00c64318cc337846a7a08a5678f5f19aeff188.tar.xz
nfs: Add "lookupcache" to displayed mount options
Running "cat /proc/mounts" fails to display the "lookupcache" option. This oversight cost me a bunch of wasted time recently. The following simple patch fixes it. CC: stable <stable@kernel.org> Signed-off-by: Patrick LoPresti <lopresti@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index f1ae39f6cb02..3d0d63c00304 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -655,6 +655,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
if (nfss->options & NFS_OPTION_FSCACHE)
seq_printf(m, ",fsc");
+
+ if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) {
+ if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE)
+ seq_printf(m, ",lookupcache=none");
+ else
+ seq_printf(m, ",lookupcache=pos");
+ }
}
/*