]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: get rid of mount_info ->fill_super()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Dec 2019 12:31:01 +0000 (07:31 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:15:16 +0000 (10:15 -0500)
commit342a2b94df57ea73c1e1144bf27fba3cfd8933e7
tree88a8467f0799f7603904894e0b6a72f5dac16d7c
parented612a4d2e3c4873c38e72e9732e9539df47a192
nfs: get rid of mount_info ->fill_super()

The only possible values are nfs_fill_super and nfs_clone_super.  The
latter is used only when crossing into a submount and it is almost
identical to the former; the only differences are
* ->s_time_gran unconditionally set to 1 (even for v2 mounts).
Regression dating back to 2012, actually.
* ->s_blocksize/->s_blocksize_bits set to that of parent.

Rather than messing with the method, stash ->s_blocksize_bits in
mount_info in submount case and after the (now unconditional)
call of nfs_fill_super() override ->s_blocksize/->s_blocksize_bits
if that has been set.

Reviewed-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/internal.h
fs/nfs/namespace.c
fs/nfs/nfs4super.c
fs/nfs/super.c