Lines Matching full:primary
16 struct erofs_fscache_request *primary; member
43 static struct erofs_fscache_request *erofs_fscache_req_chain(struct erofs_fscache_request *primary, in erofs_fscache_req_chain() argument
48 /* use primary request for the first submission */ in erofs_fscache_req_chain()
49 if (!primary->submitted) { in erofs_fscache_req_chain()
50 refcount_inc(&primary->ref); in erofs_fscache_req_chain()
51 return primary; in erofs_fscache_req_chain()
54 req = erofs_fscache_req_alloc(primary->mapping, in erofs_fscache_req_chain()
55 primary->start + primary->submitted, len); in erofs_fscache_req_chain()
57 req->primary = primary; in erofs_fscache_req_chain()
58 refcount_inc(&primary->ref); in erofs_fscache_req_chain()
88 if (!req->primary) in erofs_fscache_req_put()
91 erofs_fscache_req_put(req->primary); in erofs_fscache_req_put()
102 if (req->primary) in erofs_fscache_subreq_complete()
103 req->primary->error = transferred_or_error; in erofs_fscache_subreq_complete()
187 static int erofs_fscache_data_read_slice(struct erofs_fscache_request *primary) in erofs_fscache_data_read_slice() argument
189 struct address_space *mapping = primary->mapping; in erofs_fscache_data_read_slice()
196 loff_t pos = primary->start + primary->submitted; in erofs_fscache_data_read_slice()
227 primary->submitted += PAGE_SIZE; in erofs_fscache_data_read_slice()
231 count = primary->len - primary->submitted; in erofs_fscache_data_read_slice()
235 primary->submitted += count; in erofs_fscache_data_read_slice()
250 req = erofs_fscache_req_chain(primary, count); in erofs_fscache_data_read_slice()
257 primary->submitted += count; in erofs_fscache_data_read_slice()
581 * the primary data blob (aka fsid) is unique in the shared domain. in erofs_fscache_register_fs()
585 * the uniqueness of primary data blob. in erofs_fscache_register_fs()