]> 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)
commitef79160fd8efbf9150dd6c45688cbae73a7f6c1e
tree062da61c7b41132239f3a31c0523c7ed83be460b
parentbe25c1e0c81748dfbfffee5ebfd8382ec61a7474
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