Lines Matching refs:mdi
119 bool is_valid_comrade(struct hmdfs_dentry_info_merge *mdi, umode_t mode);
120 int merge_lookup_async(struct hmdfs_dentry_info_merge *mdi,
156 static inline bool is_comrade_list_empty(struct hmdfs_dentry_info_merge *mdi)
160 mutex_lock(&mdi->comrade_list_lock);
161 ret = list_empty(&mdi->comrade_list);
162 mutex_unlock(&mdi->comrade_list_lock);
167 static inline bool has_merge_lookup_work(struct hmdfs_dentry_info_merge *mdi)
171 mutex_lock(&mdi->work_lock);
172 ret = (mdi->work_count != 0);
173 mutex_unlock(&mdi->work_lock);
178 static inline bool is_merge_lookup_end(struct hmdfs_dentry_info_merge *mdi)
182 mutex_lock(&mdi->work_lock);
183 ret = mdi->work_count == 0 || !is_comrade_list_empty(mdi);
184 mutex_unlock(&mdi->work_lock);