Lines Matching refs:primary

29 	struct erofs_fscache_request *primary;  member
56 static struct erofs_fscache_request *erofs_fscache_req_chain(struct erofs_fscache_request *primary, in erofs_fscache_req_chain() argument
62 if (!primary->submitted) { in erofs_fscache_req_chain()
63 refcount_inc(&primary->ref); in erofs_fscache_req_chain()
64 return primary; in erofs_fscache_req_chain()
67 req = erofs_fscache_req_alloc(primary->mapping, in erofs_fscache_req_chain()
68 primary->start + primary->submitted, len); in erofs_fscache_req_chain()
70 req->primary = primary; in erofs_fscache_req_chain()
71 refcount_inc(&primary->ref); in erofs_fscache_req_chain()
101 if (!req->primary) in erofs_fscache_req_put()
104 erofs_fscache_req_put(req->primary); in erofs_fscache_req_put()
115 if (req->primary) in erofs_fscache_subreq_complete()
116 req->primary->error = transferred_or_error; in erofs_fscache_subreq_complete()
200 static int erofs_fscache_data_read_slice(struct erofs_fscache_request *primary) in erofs_fscache_data_read_slice() argument
202 struct address_space *mapping = primary->mapping; in erofs_fscache_data_read_slice()
209 loff_t pos = primary->start + primary->submitted; in erofs_fscache_data_read_slice()
240 primary->submitted += PAGE_SIZE; in erofs_fscache_data_read_slice()
244 count = primary->len - primary->submitted; in erofs_fscache_data_read_slice()
248 primary->submitted += count; in erofs_fscache_data_read_slice()
263 req = erofs_fscache_req_chain(primary, count); in erofs_fscache_data_read_slice()
270 primary->submitted += count; in erofs_fscache_data_read_slice()