Lines Matching refs:off
104 loff_t off = start_pos, off2; in cachefiles_read() local
108 off2 = vfs_llseek(file, off, SEEK_DATA); in cachefiles_read()
130 skipped = off2 - off; in cachefiles_read()
205 loff_t off, off2; in cachefiles_query_occupancy() local
221 off = cachefiles_inject_read_error(); in cachefiles_query_occupancy()
222 if (off == 0) in cachefiles_query_occupancy()
223 off = vfs_llseek(file, start, SEEK_DATA); in cachefiles_query_occupancy()
224 if (off == -ENXIO) in cachefiles_query_occupancy()
226 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
228 if (round_up(off, granularity) >= start + len) in cachefiles_query_occupancy()
233 off2 = vfs_llseek(file, off, SEEK_HOLE); in cachefiles_query_occupancy()
240 off = round_up(off, granularity); in cachefiles_query_occupancy()
242 if (off2 <= off) in cachefiles_query_occupancy()
245 *_data_start = off; in cachefiles_query_occupancy()
249 *_data_len = off2 - off; in cachefiles_query_occupancy()
391 loff_t off, to; in cachefiles_do_prepare_read() local
425 off = cachefiles_inject_read_error(); in cachefiles_do_prepare_read()
426 if (off == 0) in cachefiles_do_prepare_read()
427 off = vfs_llseek(file, start, SEEK_DATA); in cachefiles_do_prepare_read()
428 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read()
429 if (off == (loff_t)-ENXIO) { in cachefiles_do_prepare_read()
433 trace_cachefiles_io_error(object, file_inode(file), off, in cachefiles_do_prepare_read()
439 if (off >= start + len) { in cachefiles_do_prepare_read()
444 if (off > start) { in cachefiles_do_prepare_read()
445 off = round_up(off, cache->bsize); in cachefiles_do_prepare_read()
446 len = off - start; in cachefiles_do_prepare_read()
653 size_t off, pre, post, len = subreq->len; in cachefiles_issue_write() local
661 off = start & (CACHEFILES_DIO_BLOCK_SIZE - 1); in cachefiles_issue_write()
662 if (off) { in cachefiles_issue_write()
663 pre = CACHEFILES_DIO_BLOCK_SIZE - off; in cachefiles_issue_write()