NFS: Do some tidying of the parsing code
authorDavid Howells <dhowells@redhat.com>
Tue, 10 Dec 2019 12:31:10 +0000 (07:31 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:15:17 +0000 (10:15 -0500)
commite558100fda7e8c7888f523920214bcb35ed9382b
tree062da61c7b41132239f3a31c0523c7ed83be460b
parent48be8a66cf98accca033c42d214698dd64ac4f79
NFS: Do some tidying of the parsing code

Do some tidying of the parsing code, including:

 (*) Returning 0/error rather than true/false.

 (*) Putting the nfs_fs_context pointer first in some arg lists.

 (*) Unwrap some lines that will now fit on one line.

 (*) Provide unioned sockaddr/sockaddr_storage fields to avoid casts.

 (*) nfs_parse_devname() can paste its return values directly into the
     nfs_fs_context struct as that's where the caller puts them.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/fs_context.c
fs/nfs/internal.h
fs/nfs/super.c