Lines Matching refs:mdi
122 static void merge_lookup_sync(struct hmdfs_dentry_info_merge *mdi,
134 mutex_lock(&mdi->comrade_list_lock);
136 if (!is_valid_comrade(mdi, hmdfs_cm(comrade)))
139 link_comrade(&mdi->comrade_list, comrade);
141 mutex_unlock(&mdi->comrade_list_lock);
149 struct hmdfs_dentry_info_merge *mdi = hmdfs_dm(dentry);
153 rname = hmdfs_get_real_dname(dentry, &devid, &mdi->type);
170 if (mdi->type != DT_REG || devid == 0) {
173 merge_lookup_sync(mdi, sbi, 0, cpath, flags);
175 if (mdi->type == DT_REG && !is_comrade_list_empty(mdi)) {
182 merge_lookup_sync(mdi, sbi, CLOUD_DEVICE, cpath, flags);
185 if (!is_comrade_list_empty(mdi))