Lines Matching refs:primary
29 struct erofs_fscache_request *primary;
56 static struct erofs_fscache_request *erofs_fscache_req_chain(struct erofs_fscache_request *primary,
61 /* use primary request for the first submission */
62 if (!primary->submitted) {
63 refcount_inc(&primary->ref);
64 return primary;
67 req = erofs_fscache_req_alloc(primary->mapping,
68 primary->start + primary->submitted, len);
70 req->primary = primary;
71 refcount_inc(&primary->ref);
101 if (!req->primary)
104 erofs_fscache_req_put(req->primary);
115 if (req->primary)
116 req->primary->error = transferred_or_error;
200 static int erofs_fscache_data_read_slice(struct erofs_fscache_request *primary)
202 struct address_space *mapping = primary->mapping;
209 loff_t pos = primary->start + primary->submitted;
240 primary->submitted += PAGE_SIZE;
244 count = primary->len - primary->submitted;
248 primary->submitted += count;
263 req = erofs_fscache_req_chain(primary, count);
270 primary->submitted += count;
594 * the primary data blob (aka fsid) is unique in the shared domain.
598 * the uniqueness of primary data blob.