nfs: Add "lookupcache" to displayed mount options
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Patrick LoPresti <[email protected]>
fs/nfs/super.c renamed from fs/nfs/super.c~ +7 -0
@@ -652,6 +652,13 @@ static void nfs_show_mount_options(strucif (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" ); + } }/*