Lines Matching defs:dentry

114 nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
130 err = security_dentry_init_security(dentry, sattr->ia_mode,
131 &dentry->d_name, NULL,
153 nfs4_label_init_security(struct inode *dir, struct dentry *dentry,
315 static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dentry,
352 p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry)));
365 p = xdr_encode_hyper(p, NFS_FILEID(d_inode(dentry->d_parent)));
1351 static struct nfs4_opendata *nfs4_opendata_alloc(struct dentry *dentry,
1357 struct dentry *parent = dget_parent(dentry);
1380 nfs_sb_active(dentry->d_sb);
1381 p->dentry = dget(dentry);
1416 p->o_arg.name = &dentry->d_name;
1430 p->o_arg.fh = NFS_FH(d_inode(dentry));
1454 struct super_block *sb = p->dentry->d_sb;
1467 dput(p->dentry);
2019 inode = d_inode(data->dentry);
2126 opendata = nfs4_opendata_alloc(ctx->dentry, state->owner, 0, 0,
2139 struct nfs_server *server = NFS_SB(opendata->dentry->d_sb);
2712 fh = NFS_FH(d_inode(data->dentry));
2739 d_drop(ctx->dentry);
3042 struct dentry *dentry;
3069 dentry = opendata->dentry;
3070 if (d_really_is_negative(dentry)) {
3071 struct dentry *alias;
3072 d_drop(dentry);
3073 alias = d_exact_alias(dentry, state->inode);
3075 alias = d_splice_alias(igrab(state->inode), dentry);
3078 dput(ctx->dentry);
3079 ctx->dentry = dentry = alias;
3093 nfs_set_verifier(dentry, dir_verifier);
3103 if (d_inode(dentry) == state->inode) {
3133 struct dentry *dentry = ctx->dentry;
3152 if (d_really_is_positive(dentry))
3153 nfs4_return_incompatible_delegation(d_inode(dentry), fmode);
3155 if (d_really_is_positive(dentry))
3157 opendata = nfs4_opendata_alloc(dentry, sp, fmode, flags,
3170 if (d_really_is_positive(dentry))
3171 opendata->state = nfs4_get_open_state(d_inode(dentry), sp);
3811 label = nfs4_label_init_security(dir, ctx->dentry, attr, &l);
4363 nfs4_proc_setattr(struct dentry *dentry, struct nfs_fattr *fattr,
4366 struct inode *inode = d_inode(dentry);
4407 struct dentry *dentry, struct nfs_fh *fhandle,
4415 .name = &dentry->d_name,
4433 if (nfs_lookup_is_soft_revalidate(dentry))
4440 dprintk("NFS call lookup %pd2\n", dentry);
4457 struct dentry *dentry, struct nfs_fh *fhandle,
4464 const struct qstr *name = &dentry->d_name;
4467 err = _nfs4_proc_lookup(client, dir, dentry, fhandle, fattr);
4502 static int nfs4_proc_lookup(struct inode *dir, struct dentry *dentry,
4508 status = nfs4_proc_lookup_common(&client, dir, dentry, fhandle, fattr);
4517 nfs4_proc_lookup_mountpoint(struct inode *dir, struct dentry *dentry,
4523 status = nfs4_proc_lookup_common(&client, dir, dentry, fhandle, fattr);
4693 nfs4_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
4702 ctx = alloc_nfs_open_context(dentry, FMODE_READ, NULL);
4706 ilabel = nfs4_label_init_security(dir, dentry, sattr, &l);
4753 static int nfs4_proc_remove(struct inode *dir, struct dentry *dentry)
4758 struct inode *inode = d_inode(dentry);
4768 err = _nfs4_proc_remove(dir, &dentry->d_name, NF4REG);
4769 trace_nfs4_remove(dir, &dentry->d_name, err);
4793 struct dentry *dentry,
4799 res->server = NFS_SB(dentry->d_sb);
4813 nfs4_setup_sequence(NFS_SB(data->dentry->d_sb)->nfs_client,
4837 struct dentry *old_dentry,
4838 struct dentry *new_dentry)
4991 static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data)
5004 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr);
5015 static int _nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
5026 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4LNK);
5035 status = nfs4_do_create(dir, dentry, data);
5042 static int nfs4_proc_symlink(struct inode *dir, struct dentry *dentry,
5051 label = nfs4_label_init_security(dir, dentry, sattr, &l);
5054 err = _nfs4_proc_symlink(dir, dentry, page, len, sattr, label);
5055 trace_nfs4_symlink(dir, &dentry->d_name, err);
5064 static int _nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
5070 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4DIR);
5075 status = nfs4_do_create(dir, dentry, data);
5082 static int nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,
5092 label = nfs4_label_init_security(dir, dentry, sattr, &l);
5097 err = _nfs4_proc_mkdir(dir, dentry, sattr, label);
5098 trace_nfs4_mkdir(dir, &dentry->d_name, err);
5110 struct inode *dir = d_inode(nr_arg->dentry);
5128 dprintk("%s: dentry = %pd2, cookie = %llu\n", __func__,
5129 nr_arg->dentry, (unsigned long long)nr_arg->cookie);
5135 nfs4_setup_readdir(nr_arg->cookie, nr_arg->verf, nr_arg->dentry, &args);
5159 trace_nfs4_readdir(d_inode(arg->dentry), err);
5160 err = nfs4_handle_exception(NFS_SERVER(d_inode(arg->dentry)),
5166 static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
5173 data = nfs4_alloc_createdata(dir, &dentry->d_name, sattr, NF4SOCK);
5194 status = nfs4_do_create(dir, dentry, data);
5201 static int nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
5211 label = nfs4_label_init_security(dir, dentry, sattr, &l);
5216 err = _nfs4_proc_mknod(dir, dentry, sattr, label, rdev);
5217 trace_nfs4_mknod(dir, &dentry->d_name, err);
7165 renew_lease(NFS_SERVER(d_inode(data->ctx->dentry)),
7711 struct dentry *unused, struct inode *inode,
7719 struct dentry *unused, struct inode *inode,
7725 static bool nfs4_xattr_list_nfs4_acl(struct dentry *dentry)
7727 return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_ACL);
7735 struct dentry *unused, struct inode *inode,
7743 struct dentry *unused, struct inode *inode,
7749 static bool nfs4_xattr_list_nfs4_dacl(struct dentry *dentry)
7751 return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_DACL);
7758 struct dentry *unused, struct inode *inode,
7766 struct dentry *unused, struct inode *inode,
7772 static bool nfs4_xattr_list_nfs4_sacl(struct dentry *dentry)
7774 return nfs4_server_supports_acls(NFS_SB(dentry->d_sb), NFS4ACL_SACL);
7783 struct dentry *unused, struct inode *inode,
7794 struct dentry *unused, struct inode *inode,
7834 struct dentry *unused, struct inode *inode,
7872 struct dentry *unused, struct inode *inode,
10587 static ssize_t nfs4_listxattr(struct dentry *dentry, char *list, size_t size)
10592 error = generic_listxattr(dentry, list, left);
10600 error2 = nfs4_listxattr_nfs4_label(d_inode(dentry), list, left);
10609 error3 = nfs4_listxattr_nfs4_user(d_inode(dentry), list, left);