• Home
  • Raw
  • Download

Lines Matching refs:dentry

37 static struct dentry *lock_parent(struct dentry *dentry)  in lock_parent()  argument
39 struct dentry *dir; in lock_parent()
41 dir = dget_parent(dentry); in lock_parent()
46 static void unlock_dir(struct dentry *dir) in unlock_dir()
65 struct dentry *dentry, int mode, in ecryptfs_create_underlying_file() argument
68 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_create_underlying_file()
69 struct vfsmount *lower_mnt = ecryptfs_dentry_to_lower_mnt(dentry); in ecryptfs_create_underlying_file()
70 struct dentry *dentry_save; in ecryptfs_create_underlying_file()
74 dentry_save = nd->path.dentry; in ecryptfs_create_underlying_file()
76 nd->path.dentry = lower_dentry; in ecryptfs_create_underlying_file()
79 nd->path.dentry = dentry_save; in ecryptfs_create_underlying_file()
99 struct dentry *ecryptfs_dentry, int mode, in ecryptfs_do_create()
103 struct dentry *lower_dentry; in ecryptfs_do_create()
104 struct dentry *lower_dir_dentry; in ecryptfs_do_create()
141 static int grow_file(struct dentry *ecryptfs_dentry) in grow_file()
150 fake_file.f_path.dentry = ecryptfs_dentry; in grow_file()
172 static int ecryptfs_initialize_file(struct dentry *ecryptfs_dentry) in ecryptfs_initialize_file()
225 ecryptfs_create(struct inode *directory_inode, struct dentry *ecryptfs_dentry, in ecryptfs_create()
247 int ecryptfs_lookup_and_interpose_lower(struct dentry *ecryptfs_dentry, in ecryptfs_lookup_and_interpose_lower()
248 struct dentry *lower_dentry, in ecryptfs_lookup_and_interpose_lower()
252 struct dentry *lower_dir_dentry; in ecryptfs_lookup_and_interpose_lower()
364 static struct dentry *ecryptfs_lookup(struct inode *ecryptfs_dir_inode, in ecryptfs_lookup()
365 struct dentry *ecryptfs_dentry, in ecryptfs_lookup()
371 struct dentry *lower_dir_dentry, *lower_dentry; in ecryptfs_lookup()
431 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link()
432 struct dentry *new_dentry) in ecryptfs_link()
434 struct dentry *lower_old_dentry; in ecryptfs_link()
435 struct dentry *lower_new_dentry; in ecryptfs_link()
436 struct dentry *lower_dir_dentry; in ecryptfs_link()
468 static int ecryptfs_unlink(struct inode *dir, struct dentry *dentry) in ecryptfs_unlink() argument
471 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_unlink()
473 struct dentry *lower_dir_dentry; in ecryptfs_unlink()
482 dentry->d_inode->i_nlink = in ecryptfs_unlink()
483 ecryptfs_inode_to_lower(dentry->d_inode)->i_nlink; in ecryptfs_unlink()
484 dentry->d_inode->i_ctime = dir->i_ctime; in ecryptfs_unlink()
485 d_drop(dentry); in ecryptfs_unlink()
491 static int ecryptfs_symlink(struct inode *dir, struct dentry *dentry, in ecryptfs_symlink() argument
495 struct dentry *lower_dentry; in ecryptfs_symlink()
496 struct dentry *lower_dir_dentry; in ecryptfs_symlink()
501 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_symlink()
518 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb, 0); in ecryptfs_symlink()
526 if (!dentry->d_inode) in ecryptfs_symlink()
527 d_drop(dentry); in ecryptfs_symlink()
531 static int ecryptfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) in ecryptfs_mkdir() argument
534 struct dentry *lower_dentry; in ecryptfs_mkdir()
535 struct dentry *lower_dir_dentry; in ecryptfs_mkdir()
537 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_mkdir()
542 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb, 0); in ecryptfs_mkdir()
550 if (!dentry->d_inode) in ecryptfs_mkdir()
551 d_drop(dentry); in ecryptfs_mkdir()
555 static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry) in ecryptfs_rmdir() argument
557 struct dentry *lower_dentry; in ecryptfs_rmdir()
558 struct dentry *lower_dir_dentry; in ecryptfs_rmdir()
561 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_rmdir()
562 dget(dentry); in ecryptfs_rmdir()
573 d_drop(dentry); in ecryptfs_rmdir()
574 dput(dentry); in ecryptfs_rmdir()
579 ecryptfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) in ecryptfs_mknod() argument
582 struct dentry *lower_dentry; in ecryptfs_mknod()
583 struct dentry *lower_dir_dentry; in ecryptfs_mknod()
585 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_mknod()
590 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb, 0); in ecryptfs_mknod()
597 if (!dentry->d_inode) in ecryptfs_mknod()
598 d_drop(dentry); in ecryptfs_mknod()
603 ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, in ecryptfs_rename()
604 struct inode *new_dir, struct dentry *new_dentry) in ecryptfs_rename()
607 struct dentry *lower_old_dentry; in ecryptfs_rename()
608 struct dentry *lower_new_dentry; in ecryptfs_rename()
609 struct dentry *lower_old_dir_dentry; in ecryptfs_rename()
610 struct dentry *lower_new_dir_dentry; in ecryptfs_rename()
636 ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz) in ecryptfs_readlink() argument
639 struct dentry *lower_dentry; in ecryptfs_readlink()
646 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_readlink()
651 crypt_stat = &ecryptfs_inode_to_private(dentry->d_inode)->crypt_stat; in ecryptfs_readlink()
669 dentry, lower_buf, in ecryptfs_readlink()
683 fsstack_copy_attr_atime(dentry->d_inode, lower_dentry->d_inode); in ecryptfs_readlink()
691 static void *ecryptfs_follow_link(struct dentry *dentry, struct nameidata *nd) in ecryptfs_follow_link() argument
705 rc = dentry->d_inode->i_op->readlink(dentry, (char __user *)buf, len); in ecryptfs_follow_link()
721 ecryptfs_put_link(struct dentry *dentry, struct nameidata *nd, void *ptr) in ecryptfs_put_link() argument
768 int ecryptfs_truncate(struct dentry *dentry, loff_t new_length) in ecryptfs_truncate() argument
771 struct inode *inode = dentry->d_inode; in ecryptfs_truncate()
772 struct dentry *lower_dentry; in ecryptfs_truncate()
781 crypt_stat = &ecryptfs_inode_to_private(dentry->d_inode)->crypt_stat; in ecryptfs_truncate()
786 fake_ecryptfs_file.f_path.dentry = dentry; in ecryptfs_truncate()
795 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_truncate()
798 ecryptfs_inode_to_private(dentry->d_inode)->lower_file); in ecryptfs_truncate()
879 static int ecryptfs_setattr(struct dentry *dentry, struct iattr *ia) in ecryptfs_setattr() argument
882 struct dentry *lower_dentry; in ecryptfs_setattr()
887 crypt_stat = &ecryptfs_inode_to_private(dentry->d_inode)->crypt_stat; in ecryptfs_setattr()
890 inode = dentry->d_inode; in ecryptfs_setattr()
892 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_setattr()
894 if (S_ISDIR(dentry->d_inode->i_mode)) in ecryptfs_setattr()
896 else if (S_ISREG(dentry->d_inode->i_mode) in ecryptfs_setattr()
902 dentry->d_sb)->mount_crypt_stat; in ecryptfs_setattr()
903 rc = ecryptfs_read_metadata(dentry); in ecryptfs_setattr()
927 rc = ecryptfs_truncate(dentry, ia->ia_size); in ecryptfs_setattr()
952 ecryptfs_setxattr(struct dentry *dentry, const char *name, const void *value, in ecryptfs_setxattr() argument
956 struct dentry *lower_dentry; in ecryptfs_setxattr()
958 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_setxattr()
972 ecryptfs_getxattr_lower(struct dentry *lower_dentry, const char *name, in ecryptfs_getxattr_lower()
990 ecryptfs_getxattr(struct dentry *dentry, const char *name, void *value, in ecryptfs_getxattr() argument
993 return ecryptfs_getxattr_lower(ecryptfs_dentry_to_lower(dentry), name, in ecryptfs_getxattr()
998 ecryptfs_listxattr(struct dentry *dentry, char *list, size_t size) in ecryptfs_listxattr() argument
1001 struct dentry *lower_dentry; in ecryptfs_listxattr()
1003 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_listxattr()
1015 static int ecryptfs_removexattr(struct dentry *dentry, const char *name) in ecryptfs_removexattr() argument
1018 struct dentry *lower_dentry; in ecryptfs_removexattr()
1020 lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_removexattr()