]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: tidy up nfs_show_mountd_netid
authorNeilBrown <neilb@suse.com>
Fri, 13 Jan 2017 00:04:27 +0000 (11:04 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Jan 2017 18:14:50 +0000 (13:14 -0500)
commitfcc981eed1afa71259a72f77a9cbc95344c85e6d
treeb237c467bf539ba5f7e0093ecc8addce28588fe7
parent9dd7f836919298641463939a00709b49bfcc9553
NFS: tidy up nfs_show_mountd_netid

This function is a bit clumsy, incorrectly producing
",mountproto=" if mountd_protocol is 0 and !showdefaults,
and duplicating the code for reporting "auto".

Tidy it up so that it only makes a single seq_printf() call,
and more obviously does the right thing.

Fixes: 7fd497fac003 ("NFS: convert proto= option to use netids rather than a protoname")
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c