Home
last modified time | relevance | path

Searched refs:lower_dentry (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/fs/sharefs/
H A Dinode.c39 struct dentry *lower_dentry; in sharefs_listxattr() local
43 lower_dentry = lower_path.dentry; in sharefs_listxattr()
44 if (!(d_inode(lower_dentry)->i_opflags & IOP_XATTR)) { in sharefs_listxattr()
48 err = vfs_listxattr(lower_dentry, buffer, buffer_size); in sharefs_listxattr()
84 struct dentry *lower_dentry; in sharefs_create() local
97 lower_dentry = lower_path.dentry; in sharefs_create()
98 lower_parent_dentry = lock_parent(lower_dentry); in sharefs_create()
99 err = vfs_create(d_inode(lower_parent_dentry), lower_dentry, mode, in sharefs_create()
119 struct dentry *lower_dentry; in sharefs_mkdir() local
132 lower_dentry in sharefs_mkdir()
157 struct dentry *lower_dentry = NULL; sharefs_unlink() local
186 struct dentry *lower_dentry; sharefs_rmdir() local
270 struct dentry *lower_dentry; sharefs_setattr() local
[all...]
H A Dlookup.c207 struct dentry *lower_dentry; in __sharefs_lookup() local
251 lower_dentry = d_lookup(lower_dir_dentry, &this); in __sharefs_lookup()
252 if (lower_dentry) in __sharefs_lookup()
255 lower_dentry = d_alloc(lower_dir_dentry, &this); in __sharefs_lookup()
256 if (!lower_dentry) { in __sharefs_lookup()
264 * lower_dentry. Without this, sharefs could not stack on top of itself. in __sharefs_lookup()
267 lower_dentry, flags); in __sharefs_lookup()
270 lower_path.dentry = lower_dentry; in __sharefs_lookup()
/kernel/linux/linux-6.6/fs/sharefs/
H A Dinode.c39 struct dentry *lower_dentry; in sharefs_listxattr() local
43 lower_dentry = lower_path.dentry; in sharefs_listxattr()
44 if (!(d_inode(lower_dentry)->i_opflags & IOP_XATTR)) { in sharefs_listxattr()
48 err = vfs_listxattr(lower_dentry, buffer, buffer_size); in sharefs_listxattr()
84 struct dentry *lower_dentry; in sharefs_create() local
97 lower_dentry = lower_path.dentry; in sharefs_create()
98 lower_parent_dentry = lock_parent(lower_dentry); in sharefs_create()
99 err = vfs_create(d_inode(lower_parent_dentry), lower_dentry, mode, in sharefs_create()
119 struct dentry *lower_dentry; in sharefs_mkdir() local
132 lower_dentry in sharefs_mkdir()
157 struct dentry *lower_dentry = NULL; sharefs_unlink() local
186 struct dentry *lower_dentry; sharefs_rmdir() local
270 struct dentry *lower_dentry; sharefs_setattr() local
[all...]
H A Dlookup.c207 struct dentry *lower_dentry; in __sharefs_lookup() local
251 lower_dentry = d_lookup(lower_dir_dentry, &this); in __sharefs_lookup()
252 if (lower_dentry) in __sharefs_lookup()
255 lower_dentry = d_alloc(lower_dir_dentry, &this); in __sharefs_lookup()
256 if (!lower_dentry) { in __sharefs_lookup()
264 * lower_dentry. Without this, sharefs could not stack on top of itself. in __sharefs_lookup()
267 lower_dentry, flags); in __sharefs_lookup()
270 lower_path.dentry = lower_dentry; in __sharefs_lookup()
/kernel/linux/linux-6.6/fs/ecryptfs/
H A Dinode.c28 struct dentry **lower_dentry, in lock_parent()
35 *lower_dentry = ecryptfs_dentry_to_lower(dentry); in lock_parent()
38 return (*lower_dentry)->d_parent == lower_dir_dentry ? 0 : -EINVAL; in lock_parent()
117 * @lower_dentry: Existing dentry in the lower filesystem
125 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose() argument
128 struct inode *inode = ecryptfs_get_inode(d_inode(lower_dentry), sb); in ecryptfs_interpose()
140 struct dentry *lower_dentry; in ecryptfs_do_unlink() local
144 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_do_unlink()
145 dget(lower_dentry); // don't even try to make the lower negative in ecryptfs_do_unlink()
147 if (d_unhashed(lower_dentry)) in ecryptfs_do_unlink()
27 lock_parent(struct dentry *dentry, struct dentry **lower_dentry, struct inode **lower_dir) lock_parent() argument
185 struct dentry *lower_dentry; ecryptfs_do_create() local
327 ecryptfs_lookup_interpose(struct dentry *dentry, struct dentry *lower_dentry) ecryptfs_lookup_interpose() argument
396 struct dentry *lower_dir_dentry, *lower_dentry; ecryptfs_lookup() local
472 struct dentry *lower_dentry; ecryptfs_symlink() local
510 struct dentry *lower_dentry; ecryptfs_mkdir() local
534 struct dentry *lower_dentry; ecryptfs_rmdir() local
563 struct dentry *lower_dentry; ecryptfs_mknod() local
651 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_readlink_lower() local
864 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_truncate() local
899 struct dentry *lower_dentry; ecryptfs_setattr() local
1043 struct dentry *lower_dentry; ecryptfs_setxattr() local
1062 ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode, const char *name, void *value, size_t size) ecryptfs_getxattr_lower() argument
1091 struct dentry *lower_dentry; ecryptfs_listxattr() local
1109 struct dentry *lower_dentry; ecryptfs_removexattr() local
1133 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_fileattr_set() local
1154 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_set_acl() local
[all...]
H A Ddentry.c33 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_d_revalidate() local
39 if (lower_dentry->d_flags & DCACHE_OP_REVALIDATE) in ecryptfs_d_revalidate()
40 rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags); in ecryptfs_d_revalidate()
H A Dsuper.c92 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_statfs() local
95 if (!lower_dentry->d_sb->s_op->statfs) in ecryptfs_statfs()
98 rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); in ecryptfs_statfs()
H A Dkthread.c109 * @lower_dentry: Lower dentry for file to open
118 struct dentry *lower_dentry, in ecryptfs_privileged_open()
128 req.path.dentry = lower_dentry; in ecryptfs_privileged_open()
134 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open()
117 ecryptfs_privileged_open(struct file **lower_file, struct dentry *lower_dentry, struct vfsmount *lower_mnt, const struct cred *cred) ecryptfs_privileged_open() argument
H A Dmmap.c408 struct dentry *lower_dentry = in ecryptfs_write_inode_size_to_xattr() local
410 struct inode *lower_inode = d_inode(lower_dentry); in ecryptfs_write_inode_size_to_xattr()
425 size = __vfs_getxattr(lower_dentry, lower_inode, ECRYPTFS_XATTR_NAME, in ecryptfs_write_inode_size_to_xattr()
430 rc = __vfs_setxattr(&nop_mnt_idmap, lower_dentry, lower_inode, in ecryptfs_write_inode_size_to_xattr()
H A Decryptfs_kernel.h596 ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode,
685 struct dentry *lower_dentry,
/kernel/linux/linux-5.10/fs/ecryptfs/
H A Dinode.c115 * @lower_dentry: Existing dentry in the lower filesystem
123 static int ecryptfs_interpose(struct dentry *lower_dentry, in ecryptfs_interpose() argument
126 struct inode *inode = ecryptfs_get_inode(d_inode(lower_dentry), sb); in ecryptfs_interpose()
138 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_do_unlink() local
146 dget(lower_dentry); // don't even try to make the lower negative in ecryptfs_do_unlink()
147 if (lower_dentry->d_parent != lower_dir_dentry) in ecryptfs_do_unlink()
149 else if (d_unhashed(lower_dentry)) in ecryptfs_do_unlink()
152 rc = vfs_unlink(lower_dir_inode, lower_dentry, NULL); in ecryptfs_do_unlink()
161 dput(lower_dentry); in ecryptfs_do_unlink()
185 struct dentry *lower_dentry; in ecryptfs_do_create() local
201 vfs_unlink(d_inode(lower_dir_dentry), lower_dentry, NULL); ecryptfs_do_create() local
327 ecryptfs_lookup_interpose(struct dentry *dentry, struct dentry *lower_dentry) ecryptfs_lookup_interpose() argument
396 struct dentry *lower_dir_dentry, *lower_dentry; ecryptfs_lookup() local
475 struct dentry *lower_dentry; ecryptfs_symlink() local
513 struct dentry *lower_dentry; ecryptfs_mkdir() local
536 struct dentry *lower_dentry; ecryptfs_rmdir() local
569 struct dentry *lower_dentry; ecryptfs_mknod() local
650 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_readlink_lower() local
863 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); ecryptfs_truncate() local
893 struct dentry *lower_dentry; ecryptfs_setattr() local
1026 struct dentry *lower_dentry; ecryptfs_setxattr() local
1041 ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode, const char *name, void *value, size_t size) ecryptfs_getxattr_lower() argument
1070 struct dentry *lower_dentry; ecryptfs_listxattr() local
1088 struct dentry *lower_dentry; ecryptfs_removexattr() local
[all...]
H A Ddentry.c33 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_d_revalidate() local
39 if (lower_dentry->d_flags & DCACHE_OP_REVALIDATE) in ecryptfs_d_revalidate()
40 rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags); in ecryptfs_d_revalidate()
H A Dsuper.c92 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry); in ecryptfs_statfs() local
95 if (!lower_dentry->d_sb->s_op->statfs) in ecryptfs_statfs()
98 rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); in ecryptfs_statfs()
H A Dkthread.c109 * @lower_dentry: Lower dentry for file to open
117 struct dentry *lower_dentry, in ecryptfs_privileged_open()
127 req.path.dentry = lower_dentry; in ecryptfs_privileged_open()
133 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open()
116 ecryptfs_privileged_open(struct file **lower_file, struct dentry *lower_dentry, struct vfsmount *lower_mnt, const struct cred *cred) ecryptfs_privileged_open() argument
H A Dmmap.c407 struct dentry *lower_dentry = in ecryptfs_write_inode_size_to_xattr() local
409 struct inode *lower_inode = d_inode(lower_dentry); in ecryptfs_write_inode_size_to_xattr()
424 size = __vfs_getxattr(lower_dentry, lower_inode, ECRYPTFS_XATTR_NAME, in ecryptfs_write_inode_size_to_xattr()
429 rc = __vfs_setxattr(lower_dentry, lower_inode, ECRYPTFS_XATTR_NAME, in ecryptfs_write_inode_size_to_xattr()
H A Decryptfs_kernel.h611 ecryptfs_getxattr_lower(struct dentry *lower_dentry, struct inode *lower_inode,
700 struct dentry *lower_dentry,
H A Dcrypto.c1102 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry); in ecryptfs_write_metadata_to_xattr() local
1103 struct inode *lower_inode = d_inode(lower_dentry); in ecryptfs_write_metadata_to_xattr()
1111 rc = __vfs_setxattr(lower_dentry, lower_inode, ECRYPTFS_XATTR_NAME, in ecryptfs_write_metadata_to_xattr()
1329 struct dentry *lower_dentry = in ecryptfs_read_xattr_region() local
1334 size = ecryptfs_getxattr_lower(lower_dentry, in ecryptfs_read_xattr_region()
/kernel/linux/linux-5.10/fs/hmdfs/
H A Ddentry.c56 struct dentry *lower_dentry) in lock_for_dname_cmp()
58 if (dentry < lower_dentry) { in lock_for_dname_cmp()
60 spin_lock_nested(&lower_dentry->d_lock, DENTRY_D_LOCK_NESTED); in lock_for_dname_cmp()
62 spin_lock(&lower_dentry->d_lock); in lock_for_dname_cmp()
68 struct dentry *lower_dentry) in unlock_for_dname_cmp()
71 spin_unlock(&lower_dentry->d_lock); in unlock_for_dname_cmp()
109 struct dentry *lower_dentry = NULL; in hmdfs_d_revalidate() local
133 lower_dentry = lower_path.dentry; in hmdfs_d_revalidate()
134 lower_cur_parent_dentry = dget_parent(lower_dentry); in hmdfs_d_revalidate()
137 if ((lower_dentry in hmdfs_d_revalidate()
55 lock_for_dname_cmp(struct dentry *dentry, struct dentry *lower_dentry) lock_for_dname_cmp() argument
67 unlock_for_dname_cmp(struct dentry *dentry, struct dentry *lower_dentry) unlock_for_dname_cmp() argument
[all...]
H A Dinode_local.c243 struct dentry *lower_dentry = NULL, *parent_dentry = NULL, *ret = NULL; in hmdfs_lookup_local() local
303 lower_dentry = lookup_one_len_unlocked(d_name, lower_parent_path.dentry, in hmdfs_lookup_local()
305 if (IS_ERR(lower_dentry)) { in hmdfs_lookup_local()
306 err = PTR_ERR(lower_dentry); in hmdfs_lookup_local()
307 ret = lower_dentry; in hmdfs_lookup_local()
310 lower_path.dentry = lower_dentry; in hmdfs_lookup_local()
331 struct dentry *lower_dentry = NULL; in hmdfs_mkdir_local_dentry() local
345 lower_dentry = lower_path.dentry; in hmdfs_mkdir_local_dentry()
346 lower_dir_dentry = lock_parent(lower_dentry); in hmdfs_mkdir_local_dentry()
351 error = vfs_mkdir(lower_dir, lower_dentry, mod in hmdfs_mkdir_local_dentry()
409 struct dentry *lower_dentry = NULL; hmdfs_create_local_dentry() local
504 struct dentry *lower_dentry = NULL; hmdfs_rmdir_local_dentry() local
569 struct dentry *lower_dentry = NULL; hmdfs_unlink_local_dentry() local
770 struct dentry *lower_dentry = NULL; hmdfs_symlink_local() local
841 struct dentry *lower_dentry = NULL; hmdfs_get_link_local() local
875 struct dentry *lower_dentry = NULL; hmdfs_setattr_local() local
[all...]
H A Dmain.c101 struct dentry *lower_dentry = hmdfs_get_lo_d(dentry, HMDFS_DEVID_LOCAL); in hmdfs_xattr_merge_get() local
103 if (!lower_dentry) { in hmdfs_xattr_merge_get()
107 err = hmdfs_xattr_local_get(lower_dentry, name, value, size); in hmdfs_xattr_merge_get()
109 dput(lower_dentry); in hmdfs_xattr_merge_get()
191 struct dentry *lower_dentry = hmdfs_get_lo_d(dentry, HMDFS_DEVID_LOCAL); in hmdfs_xattr_merge_set() local
193 if (!lower_dentry) { in hmdfs_xattr_merge_set()
197 err = hmdfs_xattr_local_set(lower_dentry, name, value, size, flags); in hmdfs_xattr_merge_set()
199 dput(lower_dentry); in hmdfs_xattr_merge_set()
H A Dinode_merge.c797 struct dentry *lower_dentry = hmdfs_get_fst_lo_d(dentry); in hmdfs_setattr_merge() local
804 if (!lower_dentry) { in hmdfs_setattr_merge()
810 lower_inode = d_inode(lower_dentry); in hmdfs_setattr_merge()
819 err = notify_change(lower_dentry, &lower_ia, NULL); in hmdfs_setattr_merge()
829 dput(lower_dentry); in hmdfs_setattr_merge()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Ddentry.c56 struct dentry *lower_dentry) in lock_for_dname_cmp()
58 if (dentry < lower_dentry) { in lock_for_dname_cmp()
60 spin_lock_nested(&lower_dentry->d_lock, DENTRY_D_LOCK_NESTED); in lock_for_dname_cmp()
62 spin_lock(&lower_dentry->d_lock); in lock_for_dname_cmp()
68 struct dentry *lower_dentry) in unlock_for_dname_cmp()
71 spin_unlock(&lower_dentry->d_lock); in unlock_for_dname_cmp()
109 struct dentry *lower_dentry = NULL; in hmdfs_d_revalidate() local
133 lower_dentry = lower_path.dentry; in hmdfs_d_revalidate()
134 lower_cur_parent_dentry = dget_parent(lower_dentry); in hmdfs_d_revalidate()
137 if ((lower_dentry in hmdfs_d_revalidate()
55 lock_for_dname_cmp(struct dentry *dentry, struct dentry *lower_dentry) lock_for_dname_cmp() argument
67 unlock_for_dname_cmp(struct dentry *dentry, struct dentry *lower_dentry) unlock_for_dname_cmp() argument
[all...]
H A Dinode_local.c243 struct dentry *lower_dentry = NULL, *parent_dentry = NULL, *ret = NULL; in hmdfs_lookup_local() local
303 lower_dentry = lookup_one_len_unlocked(d_name, lower_parent_path.dentry, in hmdfs_lookup_local()
305 if (IS_ERR(lower_dentry)) { in hmdfs_lookup_local()
306 err = PTR_ERR(lower_dentry); in hmdfs_lookup_local()
307 ret = lower_dentry; in hmdfs_lookup_local()
310 lower_path.dentry = lower_dentry; in hmdfs_lookup_local()
331 struct dentry *lower_dentry = NULL; in hmdfs_mkdir_local_dentry() local
345 lower_dentry = lower_path.dentry; in hmdfs_mkdir_local_dentry()
346 lower_dir_dentry = lock_parent(lower_dentry); in hmdfs_mkdir_local_dentry()
351 error = vfs_mkdir(&nop_mnt_idmap, lower_dir, lower_dentry, mod in hmdfs_mkdir_local_dentry()
409 struct dentry *lower_dentry = NULL; hmdfs_create_local_dentry() local
504 struct dentry *lower_dentry = NULL; hmdfs_rmdir_local_dentry() local
569 struct dentry *lower_dentry = NULL; hmdfs_unlink_local_dentry() local
777 struct dentry *lower_dentry = NULL; hmdfs_symlink_local() local
848 struct dentry *lower_dentry = NULL; hmdfs_get_link_local() local
882 struct dentry *lower_dentry = NULL; hmdfs_setattr_local() local
[all...]
H A Dmain.c101 struct dentry *lower_dentry = hmdfs_get_lo_d(dentry, HMDFS_DEVID_LOCAL); in hmdfs_xattr_merge_get() local
103 if (!lower_dentry) { in hmdfs_xattr_merge_get()
107 err = hmdfs_xattr_local_get(lower_dentry, name, value, size); in hmdfs_xattr_merge_get()
109 dput(lower_dentry); in hmdfs_xattr_merge_get()
191 struct dentry *lower_dentry = hmdfs_get_lo_d(dentry, HMDFS_DEVID_LOCAL); in hmdfs_xattr_merge_set() local
193 if (!lower_dentry) { in hmdfs_xattr_merge_set()
197 err = hmdfs_xattr_local_set(lower_dentry, name, value, size, flags); in hmdfs_xattr_merge_set()
199 dput(lower_dentry); in hmdfs_xattr_merge_set()
H A Dinode_merge.c797 struct dentry *lower_dentry = hmdfs_get_fst_lo_d(dentry); in hmdfs_setattr_merge() local
804 if (!lower_dentry) { in hmdfs_setattr_merge()
810 lower_inode = d_inode(lower_dentry); in hmdfs_setattr_merge()
819 err = notify_change(&nop_mnt_idmap, lower_dentry, &lower_ia, NULL); in hmdfs_setattr_merge()
829 dput(lower_dentry); in hmdfs_setattr_merge()

Completed in 24 milliseconds

12