Lines Matching defs:dentry

122 nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
138 err = security_dentry_init_security(dentry, sattr->ia_mode,
139 &dentry->d_name, (void **)&label->label, &label->len);
160 nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
321 static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dentry,
358 p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry)));
371 p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry->d_parent)));
1336 static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry,
1342 struct dentry *parent = dget_parent(dentry);
1365 nfs_sb_active(dentry->d_sb);
1366 p->dentry = dget(dentry);
1411 p->o_arg.name = &dentry->d_name;
1425 p->o_arg.fh = NFS_FH(d_inode(dentry));
1449 struct super_block *sb = p->dentry->d_sb;
1462 dput(p->dentry);
2014 inode = d_inode(data->dentry);
2121 opendata = nfs4_opendata_alloc(ctx->dentry, state->owner, 0, 0,
2134 struct nfs_server *server = NFS_SB(opendata->dentry->d_sb);
2729 d_drop(ctx->dentry);
3032 struct dentry *dentry;
3057 dentry = opendata->dentry;
3058 if (d_really_is_negative(dentry)) {
3059 struct dentry *alias;
3060 d_drop(dentry);
3061 alias = d_exact_alias(dentry, state->inode);
3063 alias = d_splice_alias(igrab(state->inode), dentry);
3066 dput(ctx->dentry);
3067 ctx->dentry = dentry = alias;
3081 nfs_set_verifier(dentry, dir_verifier);
3092 if (d_inode(dentry) == state->inode) {
3122 struct dentry *dentry = ctx->dentry;
3142 if (d_really_is_positive(dentry))
3143 nfs4_return_incompatible_delegation(d_inode(dentry), fmode);
3145 if (d_really_is_positive(dentry))
3147 opendata = nfs4_opendata_alloc(dentry, sp, fmode, flags,
3168 if (d_really_is_positive(dentry))
3169 opendata->state = nfs4_get_open_state(d_inode(dentry), sp);
3810 label = nfs4_label_init_security(dir, ctx->dentry, attr, &l);
4237 nfs4_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
4240 struct inode *inode = d_inode(dentry);
4287 struct dentry *dentry, struct nfs_fh *fhandle,
4295 .name = &dentry->d_name,
4311 if (nfs_lookup_is_soft_revalidate(dentry))
4318 dprintk("NFS call lookup %pd2\n", dentry);
4335 struct dentry *dentry, struct nfs_fh *fhandle,
4342 const struct qstr *name = &dentry->d_name;
4345 err = _nfs4_proc_lookup(client, dir, dentry, fhandle, fattr, label);
4380 static int nfs4_proc_lookup(struct inode *dir, struct dentry *dentry,
4387 status = nfs4_proc_lookup_common(&client, dir, dentry, fhandle, fattr, label);
4396 nfs4_proc_lookup_mountpoint(struct inode *dir, struct dentry *dentry,
4402 status = nfs4_proc_lookup_common(&client, dir, dentry, fhandle, fattr, NULL);
4568 nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
4577 ctx = alloc_nfs_open_context(dentry, FMODE_READ, NULL);
4581 ilabel = nfs4_label_init_security(dir, dentry, sattr, &l);
4628 static int nfs4_proc_remove(struct inode *dir, struct dentry *dentry)
4633 struct inode *inode = d_inode(dentry);
4643 err = _nfs4_proc_remove(dir, &dentry->d_name, NF4REG);
4644 trace_nfs4_remove(dir, &dentry->d_name, err);
4668 struct dentry *dentry,
4674 res->server = NFS_SB(dentry->d_sb);
4686 nfs4_setup_sequence(NFS_SB(data->dentry->d_sb)->nfs_client,
4710 struct dentry *old_dentry,
4711 struct dentry *new_dentry)
4874 static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data)
4887 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, data->res.label);
4898 static int _nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
4909 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4LNK);
4918 status = nfs4_do_create(dir, dentry, data);
4925 static int nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
4934 label = nfs4_label_init_security(dir, dentry, sattr, &l);
4937 err = _nfs4_proc_symlink(dir, dentry, page, len, sattr, label);
4938 trace_nfs4_symlink(dir, &dentry->d_name, err);
4947 static int _nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
4953 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4DIR);
4958 status = nfs4_do_create(dir, dentry, data);
4965 static int nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
4975 label = nfs4_label_init_security(dir, dentry, sattr, &l);
4980 err = _nfs4_proc_mkdir(dir, dentry, sattr, label);
4981 trace_nfs4_mkdir(dir, &dentry->d_name, err);
4990 static int _nfs4_proc_readdir(struct dentry *dentry, const struct cred *cred,
4993 struct inode *dir = d_inode(dentry);
5011 dprintk("%s: dentry = %pd2, cookie = %Lu\n", __func__,
5012 dentry,
5019 nfs4_setup_readdir(cookie, NFS_I(dir)->cookieverf, dentry, &args);
5034 static int nfs4_proc_readdir(struct dentry *dentry, const struct cred *cred,
5042 err = _nfs4_proc_readdir(dentry, cred, cookie,
5044 trace_nfs4_readdir(d_inode(dentry), err);
5045 err = nfs4_handle_exception(NFS_SERVER(d_inode(dentry)), err,
5051 static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
5058 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4SOCK);
5079 status = nfs4_do_create(dir, dentry, data);
5086 static int nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
5096 label = nfs4_label_init_security(dir, dentry, sattr, &l);
5101 err = _nfs4_proc_mknod(dir, dentry, sattr, label, rdev);
5102 trace_nfs4_mknod(dir, &dentry->d_name, err);
7029 struct nfs_server *server = NFS_SERVER(d_inode(data->ctx->dentry));
7558 struct dentry *unused, struct inode *inode,
7566 struct dentry *unused, struct inode *inode,
7572 static bool nfs4_xattr_list_nfs4_acl(struct dentry *dentry)
7574 return nfs4_server_supports_acls(NFS_SERVER(d_inode(dentry)));
7580 struct dentry *unused, struct inode *inode,
7591 struct dentry *unused, struct inode *inode,
7630 struct dentry *unused, struct inode *inode,
7668 struct dentry *unused, struct inode *inode,
10370 static ssize_t nfs4_listxattr(struct dentry *dentry, char *list, size_t size)
10375 error = generic_listxattr(dentry, list, left);
10383 error2 = nfs4_listxattr_nfs4_label(d_inode(dentry), list, left);
10392 error3 = nfs4_listxattr_nfs4_user(d_inode(dentry), list, left);