Lines Matching refs:dentry

282 	error = nlmsvc_unlock_all_by_sb(path.dentry->d_sb);
283 nfsd4_revoke_states(netns(file), path.dentry->d_sb);
931 struct dentry *dentry = file_dentry(file);
941 trace_nfsd_ctl_time(netns(file), dentry->d_name.name,
942 dentry->d_name.len, i);
1156 static int __nfsd_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode, struct nfsdfs_client *ncl)
1167 d_add(dentry, inode);
1169 fsnotify_mkdir(dir, dentry);
1173 static struct dentry *nfsd_mkdir(struct dentry *parent, struct nfsdfs_client *ncl, char *name)
1176 struct dentry *dentry;
1180 dentry = d_alloc_name(parent, name);
1181 if (!dentry)
1183 ret = __nfsd_mkdir(d_inode(parent), dentry, S_IFDIR | 0600, ncl);
1188 return dentry;
1190 dput(dentry);
1191 dentry = ERR_PTR(ret);
1196 static int __nfsd_symlink(struct inode *dir, struct dentry *dentry,
1208 d_add(dentry, inode);
1210 fsnotify_create(dir, dentry);
1218 static void _nfsd_symlink(struct dentry *parent, const char *name,
1222 struct dentry *dentry;
1226 dentry = d_alloc_name(parent, name);
1227 if (!dentry)
1229 ret = __nfsd_symlink(d_inode(parent), dentry, S_IFLNK | 0777, content);
1231 dput(dentry);
1236 static inline void _nfsd_symlink(struct dentry *parent, const char *name,
1243 static void clear_ncl(struct dentry *dentry)
1245 struct inode *inode = d_inode(dentry);
1268 static int nfsdfs_create_files(struct dentry *root,
1271 struct dentry **fdentries)
1275 struct dentry *dentry;
1280 dentry = d_alloc_name(root, files->name);
1281 if (!dentry)
1286 dput(dentry);
1292 d_add(dentry, inode);
1293 fsnotify_create(dir, dentry);
1295 fdentries[i] = dentry;
1305 struct dentry *nfsd_client_mkdir(struct nfsd_net *nn,
1308 struct dentry **fdentries)
1310 struct dentry *dentry;
1316 dentry = nfsd_mkdir(nn->nfsd_client_dir, ncl, name);
1317 if (IS_ERR(dentry)) /* XXX: tossing errors? */
1319 ret = nfsdfs_create_files(dentry, files, ncl, fdentries);
1321 nfsd_client_rmdir(dentry);
1324 return dentry;
1328 void nfsd_client_rmdir(struct dentry *dentry)
1330 simple_recursive_removal(dentry, clear_ncl);
1337 struct dentry *dentry;
1377 dentry = nfsd_mkdir(sb->s_root, NULL, "clients");
1378 if (IS_ERR(dentry))
1379 return PTR_ERR(dentry);
1380 nn->nfsd_client_dir = dentry;