Lines Matching refs:off2
104 loff_t off = start_pos, off2; in cachefiles_read() local
106 off2 = cachefiles_inject_read_error(); in cachefiles_read()
107 if (off2 == 0) in cachefiles_read()
108 off2 = vfs_llseek(file, off, SEEK_DATA); in cachefiles_read()
109 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read()
111 ret = off2; in cachefiles_read()
115 if (off2 == -ENXIO || off2 >= start_pos + len) { in cachefiles_read()
130 skipped = off2 - off; in cachefiles_read()
205 loff_t off, off2; in cachefiles_query_occupancy() local
231 off2 = cachefiles_inject_read_error(); in cachefiles_query_occupancy()
232 if (off2 == 0) in cachefiles_query_occupancy()
233 off2 = vfs_llseek(file, off, SEEK_HOLE); in cachefiles_query_occupancy()
234 if (off2 == -ENXIO) in cachefiles_query_occupancy()
236 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
241 off2 = round_down(off2, granularity); in cachefiles_query_occupancy()
242 if (off2 <= off) in cachefiles_query_occupancy()
246 if (off2 > start + len) in cachefiles_query_occupancy()
249 *_data_len = off2 - off; in cachefiles_query_occupancy()