]> git.baikalelectronics.ru Git - kernel.git/commit
nfs_clone_sb_security(): simplify the check for server bogosity
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 10 Dec 2019 12:31:02 +0000 (07:31 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:15:16 +0000 (10:15 -0500)
commit90ca9a8c058a3454d34678126ac4989244a7e3e3
treecb3652e512949b7382e98f0f5a48232c1089838c
parent342a2b94df57ea73c1e1144bf27fba3cfd8933e7
nfs_clone_sb_security(): simplify the check for server bogosity

We used to check ->i_op for being nfs_dir_inode_operations.  With
separate inode_operations for v3 and v4 that became bogus, but
rather than going for protocol-dependent comparison we could've
just checked ->i_fop instead; _that_ is the same for all protocol
versions.

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/super.c