]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4902f24e44865b71c589c75d9cbefc379979a547
tree062da61c7b41132239f3a31c0523c7ed83be460b
parentc96cf851553129c7654c343fc028a479b4a57068
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