Lines Matching refs:dentry

603  * @dentry: The new dentry
620 static int gfs2_create_inode(struct inode *dir, struct dentry *dentry,
625 const struct qstr *name = &dentry->d_name;
657 inode = gfs2_dir_search(dir, &dentry->d_name, !S_ISREG(mode) || excl);
665 d_instantiate(dentry, inode);
669 error = finish_open(file, dentry, gfs2_open_common);
808 d_instantiate(dentry, inode);
813 error = finish_open(file, dentry, gfs2_open_common);
864 * @dentry: The dentry of the new file
872 struct dentry *dentry, umode_t mode, bool excl)
874 return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl);
880 * @dentry: The dentry of the new inode
887 static struct dentry *__gfs2_lookup(struct inode *dir, struct dentry *dentry,
891 struct dentry *d;
896 inode = gfs2_lookupi(dir, &dentry->d_name, 0);
898 d_add(dentry, NULL);
911 d = d_splice_alias(inode, dentry);
917 error = finish_open(file, dentry, gfs2_open_common);
927 static struct dentry *gfs2_lookup(struct inode *dir, struct dentry *dentry,
930 return __gfs2_lookup(dir, dentry, NULL);
937 * @dentry: The name of the link
940 * name in "dentry".
945 static int gfs2_link(struct dentry *old_dentry, struct inode *dir,
946 struct dentry *dentry)
983 error = gfs2_dir_check(dir, &dentry->d_name, NULL);
1007 error = gfs2_diradd_alloc_required(dir, &dentry->d_name, &da);
1034 error = gfs2_dir_add(dir, &dentry->d_name, ip, &da);
1042 d_instantiate(dentry, inode);
1105 * @dentry: The dentry to unlink
1114 const struct dentry *dentry)
1116 struct inode *inode = d_inode(dentry);
1120 error = gfs2_dir_del(dip, dentry);
1140 * @dentry: The file itself
1148 static int gfs2_unlink(struct inode *dir, struct dentry *dentry)
1152 struct inode *inode = d_inode(dentry);
1196 error = gfs2_unlink_ok(dip, &dentry->d_name, ip);
1204 error = gfs2_unlink_inode(dip, dentry);
1225 * @dentry: The dentry to put the symlink in
1232 struct dentry *dentry, const char *symname)
1240 return gfs2_create_inode(dir, dentry, NULL, S_IFLNK | S_IRWXUGO, 0, symname, size, 0);
1247 * @dentry: The dentry of the new directory
1254 struct dentry *dentry, umode_t mode)
1257 return gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0);
1264 * @dentry: The dentry of the special file
1271 struct dentry *dentry, umode_t mode, dev_t dev)
1273 return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0);
1279 * @dentry: The proposed new entry
1287 static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry,
1291 struct dentry *d;
1294 if (!d_in_lookup(dentry))
1297 d = __gfs2_lookup(dir, dentry, file);
1301 dentry = d;
1302 if (d_really_is_positive(dentry)) {
1315 return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl);
1391 * @odentry: The old dentry of the file
1393 * @ndentry: The new dentry of the file
1398 static int gfs2_rename(struct inode *odir, struct dentry *odentry,
1399 struct inode *ndir, struct dentry *ndentry)
1636 * @odentry: The old dentry of the file
1638 * @ndentry: The new dentry of the file
1644 static int gfs2_exchange(struct inode *odir, struct dentry *odentry,
1645 struct inode *ndir, struct dentry *ndentry,
1783 struct dentry *odentry, struct inode *ndir,
1784 struct dentry *ndentry, unsigned int flags)
1799 * @dentry: The dentry of the link
1808 static const char *gfs2_get_link(struct dentry *dentry,
1819 if (!dentry)
1991 * @dentry: The dentry which is changing
2001 struct dentry *dentry, struct iattr *attr)
2003 struct inode *inode = d_inode(dentry);
2020 error = setattr_prepare(&nop_mnt_idmap, dentry, attr);
2031 error = posix_acl_chmod(&nop_mnt_idmap, dentry,
2065 struct inode *inode = d_inode(path->dentry);