Skip to content

Commit 8b244ff

Browse files
author
Al Viro
committed
switch nfs to ->s_d_op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 96e1391 commit 8b244ff

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

‎fs/nfs/dir.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry)
439439
if (dentry == NULL)
440440
return;
441441

442-
d_set_d_op(dentry, NFS_PROTO(dir)->dentry_ops);
443442
inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr);
444443
if (IS_ERR(inode))
445444
goto out;
@@ -1193,8 +1192,6 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
11931192
if (dentry->d_name.len > NFS_SERVER(dir)->namelen)
11941193
goto out;
11951194

1196-
d_set_d_op(dentry, NFS_PROTO(dir)->dentry_ops);
1197-
11981195
/*
11991196
* If we're doing an exclusive create, optimize away the lookup
12001197
* but don't hash the dentry.
@@ -1338,7 +1335,6 @@ static struct dentry *nfs_atomic_lookup(struct inode *dir, struct dentry *dentry
13381335
res = ERR_PTR(-ENAMETOOLONG);
13391336
goto out;
13401337
}
1341-
d_set_d_op(dentry, NFS_PROTO(dir)->dentry_ops);
13421338

13431339
/* Let vfs_create() deal with O_EXCL. Instantiate, but don't hash
13441340
* the dentry. */

‎fs/nfs/getroot.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh)
119119
}
120120

121121
security_d_instantiate(ret, inode);
122-
123-
if (ret->d_op == NULL)
124-
d_set_d_op(ret, server->nfs_client->rpc_ops->dentry_ops);
125122
out:
126123
nfs_free_fattr(fsinfo.fattr);
127124
return ret;
@@ -227,9 +224,6 @@ struct dentry *nfs4_get_root(struct super_block *sb, struct nfs_fh *mntfh)
227224

228225
security_d_instantiate(ret, inode);
229226

230-
if (ret->d_op == NULL)
231-
d_set_d_op(ret, server->nfs_client->rpc_ops->dentry_ops);
232-
233227
out:
234228
nfs_free_fattr(fattr);
235229
dprintk("<-- nfs4_get_root()\n");

‎fs/nfs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,7 @@ static int nfs_set_super(struct super_block *s, void *data)
22022202

22032203
s->s_flags = sb_mntdata->mntflags;
22042204
s->s_fs_info = server;
2205+
s->s_d_op = server->nfs_client->rpc_ops->dentry_ops;
22052206
ret = set_anon_super(s, server);
22062207
if (ret == 0)
22072208
server->s_dev = s->s_dev;

0 commit comments

Comments
 (0)