Lines Matching defs:dentry

550 static int shmem_setattr(struct dentry *dentry, struct iattr *attr)
552 struct inode *inode = dentry->d_inode;
2182 static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf)
2184 struct shmem_sb_info *sbinfo = SHMEM_SB(dentry->d_sb);
2207 shmem_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
2218 &dentry->d_name,
2226 d_instantiate(dentry, inode);
2227 dget(dentry); /* Extra count - pin the dentry in core */
2236 shmem_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode)
2251 d_tmpfile(dentry, inode);
2259 static int shmem_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
2263 if ((error = shmem_mknod(dir, dentry, mode | S_IFDIR, 0)))
2269 static int shmem_create(struct inode *dir, struct dentry *dentry, umode_t mode,
2272 return shmem_mknod(dir, dentry, mode | S_IFREG, 0);
2278 static int shmem_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
2285 * but each new link needs a new dentry, pinning lowmem, and
2295 ihold(inode); /* New dentry reference */
2296 dget(dentry); /* Extra pinning count for the created dentry */
2297 d_instantiate(dentry, inode);
2302 static int shmem_unlink(struct inode *dir, struct dentry *dentry)
2304 struct inode *inode = dentry->d_inode;
2312 dput(dentry); /* Undo the count from "create" - this does all the work */
2316 static int shmem_rmdir(struct inode *dir, struct dentry *dentry)
2318 if (!simple_empty(dentry))
2321 drop_nlink(dentry->d_inode);
2323 return shmem_unlink(dir, dentry);
2326 static int shmem_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry)
2348 static int shmem_whiteout(struct inode *old_dir, struct dentry *old_dentry)
2350 struct dentry *whiteout;
2364 * Cheat and hash the whiteout while the old dentry is still in
2375 * The VFS layer already does all the dentry stuff for rename,
2380 static int shmem_rename2(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)
2421 static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
2438 error = security_inode_init_security(inode, dir, &dentry->d_name,
2475 d_instantiate(dentry, inode);
2476 dget(dentry);
2480 static void *shmem_follow_short_symlink(struct dentry *dentry, struct nameidata *nd)
2482 nd_set_link(nd, SHMEM_I(dentry->d_inode)->symlink);
2486 static void *shmem_follow_link(struct dentry *dentry, struct nameidata *nd)
2489 int error = shmem_getpage(dentry->d_inode, 0, &page, SGP_READ, NULL);
2496 static void shmem_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie)
2577 static ssize_t shmem_getxattr(struct dentry *dentry, const char *name,
2580 struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
2589 return generic_getxattr(dentry, name, buffer, size);
2598 static int shmem_setxattr(struct dentry *dentry, const char *name,
2601 struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
2610 return generic_setxattr(dentry, name, value, size, flags);
2619 static int shmem_removexattr(struct dentry *dentry, const char *name)
2621 struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
2630 return generic_removexattr(dentry, name);
2639 static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size)
2641 struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
2669 static struct dentry *shmem_get_parent(struct dentry *child)
2682 static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
2686 struct dentry *dentry = NULL;
2698 dentry = d_find_alias(inode);
2702 return dentry;
2889 static int shmem_show_options(struct seq_file *seq, struct dentry *root)
3207 static struct dentry *shmem_mount(struct file_system_type *fs_type,
3348 path.dentry = d_alloc_pseudo(sb, &this);
3349 if (!path.dentry)
3351 d_set_d_op(path.dentry, &anon_ops);
3359 d_instantiate(path.dentry, inode);
3386 * @name: name for dentry (to be seen in /proc/<pid>/maps
3397 * @name: name for dentry (to be seen in /proc/<pid>/maps