diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-12-10 07:31:02 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-01-15 10:15:16 -0500 |
commit | ba8b6148067f51528dedf65b533d5094e25e6205 (patch) | |
tree | cb3652e512949b7382e98f0f5a48232c1089838c /samples/hidraw | |
parent | nfs: get rid of mount_info ->fill_super() (diff) | |
download | linux-dev-ba8b6148067f51528dedf65b533d5094e25e6205.tar.xz linux-dev-ba8b6148067f51528dedf65b533d5094e25e6205.zip |
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>
Diffstat (limited to 'samples/hidraw')
0 files changed, 0 insertions, 0 deletions