summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPatrick J. LoPresti <lopresti@gmail.com>2010-08-10 17:28:01 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-26 16:41:41 -0700
commitc122d01cbe3455eefdc9b67d43d8063a9d3c4cda (patch)
treec58ca15b9cd796f2565775fe0e14a5f27ffa7d83 /fs
parent4dfe0eb30a2b59bed15f12055363512a1423c707 (diff)
nfs: Add "lookupcache" to displayed mount options
commit 9b00c64318cc337846a7a08a5678f5f19aeff188 upstream. 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. Signed-off-by: Patrick LoPresti <lopresti@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-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 a53b9e5068cd..c0173a8531e2 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -616,6 +616,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");
+ }
}
/*