/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_root.c | 130 struct dentry *child_dentry, in hmdfs_device_lookup() argument 133 const char *d_name = child_dentry->d_name.name; in hmdfs_device_lookup() 144 trace_hmdfs_device_lookup(parent_inode, child_dentry, flags); in hmdfs_device_lookup() 147 err = init_hmdfs_dentry_info(sbi, child_dentry, in hmdfs_device_lookup() 155 hmdfs_set_lower_path(child_dentry, root_lower_path); in hmdfs_device_lookup() 162 hmdfs_put_reset_lower_path(child_dentry); in hmdfs_device_lookup() 165 ret_dentry = d_splice_alias(root_inode, child_dentry); in hmdfs_device_lookup() 169 hmdfs_put_reset_lower_path(child_dentry); in hmdfs_device_lookup() 174 err = init_hmdfs_dentry_info(sbi, child_dentry, in hmdfs_device_lookup() 187 ret_dentry = d_splice_alias(root_inode, child_dentry); in hmdfs_device_lookup() [all …]
|
D | inode_cloud.c | 32 struct hmdfs_lookup_cloud_ret *lookup_cloud_dentry(struct dentry *child_dentry, in lookup_cloud_dentry() argument 40 struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); in lookup_cloud_dentry() 42 get_cloud_cache_file(child_dentry->d_parent, sbi); in lookup_cloud_dentry() 43 cache_item = hmdfs_find_cache_item(dev_id, child_dentry->d_parent); in lookup_cloud_dentry() 52 dentry = hmdfs_find_dentry_cloud(child_dentry, &ctx); in lookup_cloud_dentry() 275 struct dentry *child_dentry, in hmdfs_lookup_cloud_dentry() argument 282 struct hmdfs_dentry_info *gdi = hmdfs_d(child_dentry); in hmdfs_lookup_cloud_dentry() 284 lookup_result = hmdfs_lookup_by_cloud(child_dentry, flags); in hmdfs_lookup_cloud_dentry() 286 if (in_share_dir(child_dentry)) in hmdfs_lookup_cloud_dentry() 292 child_dentry); in hmdfs_lookup_cloud_dentry() [all …]
|
D | inode_cloud_merge.c | 24 struct dentry *child_dentry, in fill_inode_merge() argument 37 fst_lo_d = hmdfs_get_fst_lo_d(child_dentry); in fill_inode_merge() 64 update_inode_attr(inode, child_dentry); in fill_inode_merge() 76 set_nlink(inode, get_num_comrades(child_dentry) + 2); in fill_inode_merge() 210 struct dentry *child_dentry, unsigned int flags) in do_lookup_cloud_merge_root() argument 241 assign_comrades_unlocked(child_dentry, &head); in do_lookup_cloud_merge_root() 250 struct dentry *child_dentry, unsigned int flags) in lookup_cloud_merge_root() argument 252 struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); in lookup_cloud_merge_root() 270 ret = hmdfs_get_path_in_sb(child_dentry->d_sb, buf, LOOKUP_DIRECTORY, in lookup_cloud_merge_root() 275 ret = do_lookup_cloud_merge_root(path_dev, child_dentry, flags); in lookup_cloud_merge_root() [all …]
|
D | inode_local.c | 188 struct dentry *child_dentry, unsigned int flags, in __lookup_nosensitive() argument 193 const struct qstr *name = &child_dentry->d_name; in __lookup_nosensitive() 233 struct dentry *child_dentry, in hmdfs_lookup_local() argument 236 const char *d_name = child_dentry->d_name.name; in hmdfs_lookup_local() 242 struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); in hmdfs_lookup_local() 244 trace_hmdfs_lookup_local(parent_inode, child_dentry, flags); in hmdfs_lookup_local() 245 if (child_dentry->d_name.len > NAME_MAX) { in hmdfs_lookup_local() 251 parent_dentry = dget_parent(child_dentry); in hmdfs_lookup_local() 253 err = init_hmdfs_dentry_info(sbi, child_dentry, in hmdfs_lookup_local() 260 gdi = hmdfs_d(child_dentry); in hmdfs_lookup_local() [all …]
|
D | inode_merge.c | 56 void update_inode_attr(struct inode *inode, struct dentry *child_dentry) in update_inode_attr() argument 59 struct hmdfs_dentry_info_merge *cdi = hmdfs_dm(child_dentry); in update_inode_attr() 100 struct dentry *child_dentry, in fill_inode_merge() argument 113 fst_lo_d = hmdfs_get_fst_lo_d(child_dentry); in fill_inode_merge() 140 update_inode_attr(inode, child_dentry); in fill_inode_merge() 152 set_nlink(inode, get_num_comrades(child_dentry) + 2); in fill_inode_merge() 209 void assign_comrades_unlocked(struct dentry *child_dentry, in assign_comrades_unlocked() argument 212 struct hmdfs_dentry_info_merge *cdi = hmdfs_dm(child_dentry); in assign_comrades_unlocked() 554 struct dentry *child_dentry, unsigned int flags) in do_lookup_merge_root() argument 556 struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); in do_lookup_merge_root() [all …]
|
D | inode_remote.c | 22 struct hmdfs_lookup_ret *lookup_remote_dentry(struct dentry *child_dentry, in lookup_remote_dentry() argument 30 struct hmdfs_sb_info *sbi = hmdfs_sb(child_dentry->d_sb); in lookup_remote_dentry() 32 cache_item = hmdfs_find_cache_item(dev_id, child_dentry->d_parent); in lookup_remote_dentry() 41 dentry = hmdfs_find_dentry(child_dentry, &ctx); in lookup_remote_dentry() 401 struct dentry *child_dentry, in hmdfs_lookup_remote_dentry() argument 411 int file_name_len = child_dentry->d_name.len; in hmdfs_lookup_remote_dentry() 413 struct hmdfs_dentry_info *gdi = hmdfs_d(child_dentry); in hmdfs_lookup_remote_dentry() 420 strncpy(file_name, child_dentry->d_name.name, file_name_len); in hmdfs_lookup_remote_dentry() 432 relative_path = hmdfs_get_dentry_relative_path(child_dentry->d_parent); in hmdfs_lookup_remote_dentry() 439 lookup_result = hmdfs_lookup_by_con(con, child_dentry, &qstr, flags, in hmdfs_lookup_remote_dentry() [all …]
|
D | hmdfs_dentryfile.c | 699 static struct hmdfs_dentry *hmdfs_in_level(struct dentry *child_dentry, in hmdfs_in_level() argument 740 struct hmdfs_dentry *hmdfs_find_dentry(struct dentry *child_dentry, in hmdfs_find_dentry() argument 754 de = hmdfs_in_level(child_dentry, level, ctx); in hmdfs_find_dentry() 775 void update_dentry(struct hmdfs_dentry_group *d, struct dentry *child_dentry, in update_dentry() argument 781 const struct qstr name = child_dentry->d_name; in update_dentry() 787 gdi = hmdfs_sb == child_dentry->d_sb ? hmdfs_d(child_dentry) : NULL; in update_dentry() 788 if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode)) { in update_dentry() 789 ino = d_inode(child_dentry)->i_ino; in update_dentry() 790 igen = d_inode(child_dentry)->i_generation; in update_dentry() 807 else if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode)) in update_dentry() [all …]
|
D | hmdfs_merge_view.h | 90 struct dentry *child_dentry, 94 struct dentry *child_dentry, 111 void update_inode_attr(struct inode *inode, struct dentry *child_dentry); 113 void assign_comrades_unlocked(struct dentry *child_dentry,
|
D | hmdfs_dentryfile_cloud.c | 95 hmdfs_in_level(struct dentry *child_dentry, unsigned int level, in hmdfs_in_level() argument 136 hmdfs_find_dentry_cloud(struct dentry *child_dentry, in hmdfs_find_dentry_cloud() argument 149 de = hmdfs_in_level(child_dentry, level, ctx); in hmdfs_find_dentry_cloud()
|
D | hmdfs_device_view.h | 136 struct dentry *child_dentry, unsigned int flags); 138 struct dentry *child_dentry, 141 struct dentry *child_dentry,
|
D | hmdfs_dentryfile.h | 165 int create_dentry(struct dentry *child_dentry, struct inode *inode, 169 struct hmdfs_dentry *hmdfs_find_dentry(struct dentry *child_dentry, 176 int update_inode_to_dentry(struct dentry *child_dentry, struct inode *inode);
|
D | hmdfs_dentryfile_cloud.h | 61 hmdfs_find_dentry_cloud(struct dentry *child_dentry,
|
D | hmdfs_share.h | 47 bool in_share_dir(struct dentry *child_dentry);
|
D | hmdfs_share.c | 145 bool in_share_dir(struct dentry *child_dentry) in in_share_dir() argument 147 struct dentry *parent_dentry = dget_parent(child_dentry); in in_share_dir()
|