nfs: get rid of ->set_security()
it's always either nfs_set_sb_security() or nfs_clone_sb_security(), the choice being controlled by mount_info->cloned != NULL. No need to add methods, especially when both instances live right next to the caller and are never accessed anywhere else. 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>
This commit is contained in:
@@ -201,8 +201,6 @@ struct dentry *nfs4_try_mount(int flags, const char *dev_name,
|
||||
struct nfs_parsed_mount_data *data = mount_info->parsed;
|
||||
struct dentry *res;
|
||||
|
||||
mount_info->set_security = nfs_set_sb_security;
|
||||
|
||||
dfprintk(MOUNT, "--> nfs4_try_mount()\n");
|
||||
|
||||
res = do_nfs4_mount(nfs4_create_server(mount_info),
|
||||
@@ -224,7 +222,6 @@ static struct dentry *nfs4_referral_mount(struct file_system_type *fs_type,
|
||||
{
|
||||
struct nfs_clone_mount *data = raw_data;
|
||||
struct nfs_mount_info mount_info = {
|
||||
.set_security = nfs_clone_sb_security,
|
||||
.cloned = data,
|
||||
.nfs_mod = &nfs_v4,
|
||||
};
|
||||
|
Reference in New Issue
Block a user