diff mbox

[v2] NFS: suppressing showing of default mount port value in /proc fixed

Message ID 20101206085553.2172.24863.stgit@localhost6.localdomain6 (mailing list archive)
State Changes Requested, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

Stanislav Kinsbursky Dec. 6, 2010, 9 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 6d6e21d..449024f 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -681,7 +681,9 @@  static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
 
 	if (nfss->mountd_version || showdefaults)
 		seq_printf(m, ",mountvers=%u", nfss->mountd_version);
-	if (nfss->mountd_port || showdefaults)
+	if ((nfss->mountd_port &&
+		nfss->mountd_port != (unsigned short)NFS_UNSPEC_PORT) || 
+		showdefaults)
 		seq_printf(m, ",mountport=%u", nfss->mountd_port);
 
 	nfs_show_mountd_netid(m, nfss, showdefaults);