diff options
author | Patrick J. LoPresti <lopresti@gmail.com> | 2010-08-10 17:28:01 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-08-10 17:28:01 -0400 |
commit | 9b00c64318cc337846a7a08a5678f5f19aeff188 (patch) | |
tree | 1b7248353da1c229adf2b926c2048f88513e556f /fs/nfs/super.c | |
parent | f5a73672d1811f2fb1dcb62ca90ceb12b2050ae7 (diff) | |
download | op-kernel-dev-9b00c64318cc337846a7a08a5678f5f19aeff188.zip op-kernel-dev-9b00c64318cc337846a7a08a5678f5f19aeff188.tar.gz |
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/super.c')
-rw-r--r-- | fs/nfs/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index f1ae39f..3d0d63c 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"); + } } /* |