Lines Matching refs:off2
102 loff_t off = start_pos, off2; in cachefiles_read() local
104 off2 = cachefiles_inject_read_error(); in cachefiles_read()
105 if (off2 == 0) in cachefiles_read()
106 off2 = vfs_llseek(file, off, SEEK_DATA); in cachefiles_read()
107 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read()
109 ret = off2; in cachefiles_read()
113 if (off2 == -ENXIO || off2 >= start_pos + len) { in cachefiles_read()
128 skipped = off2 - off; in cachefiles_read()
203 loff_t off, off2; in cachefiles_query_occupancy() local
229 off2 = cachefiles_inject_read_error(); in cachefiles_query_occupancy()
230 if (off2 == 0) in cachefiles_query_occupancy()
231 off2 = vfs_llseek(file, off, SEEK_HOLE); in cachefiles_query_occupancy()
232 if (off2 == -ENXIO) in cachefiles_query_occupancy()
234 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
239 off2 = round_down(off2, granularity); in cachefiles_query_occupancy()
240 if (off2 <= off) in cachefiles_query_occupancy()
244 if (off2 > start + len) in cachefiles_query_occupancy()
247 *_data_len = off2 - off; in cachefiles_query_occupancy()