Lines Matching defs:comrade
99 struct hmdfs_dentry_comrade *comrade = NULL;
103 comrade = ERR_PTR(err);
109 comrade = ERR_PTR(err);
113 comrade = alloc_comrade(path.dentry, devid);
119 return comrade;
128 struct hmdfs_dentry_comrade *comrade;
130 comrade = cloud_merge_lookup_comrade(sbi, name, devid, flags);
131 if (IS_ERR(comrade))
136 if (!is_valid_comrade(mdi, hmdfs_cm(comrade)))
137 destroy_comrade(comrade);
139 link_comrade(&mdi->comrade_list, comrade);
208 struct hmdfs_dentry_comrade *comrade;
220 comrade = lookup_comrade(path_dev, buf, HMDFS_DEVID_LOCAL, flags);
221 if (IS_ERR(comrade)) {
222 ret = PTR_ERR(comrade);
225 link_comrade(&head, comrade);
229 comrade = lookup_comrade(path_dev, buf, CLOUD_DEVICE, flags);
230 if (IS_ERR(comrade)) {
235 link_comrade(&head, comrade);