Lines Matching refs:tocopy
2948 int tocopy; in f2fs_quota_read() local
2974 tocopy = min(folio_size(folio) - offset, toread); in f2fs_quota_read()
2989 memcpy_from_folio(data, folio, offset, tocopy); in f2fs_quota_read()
2992 toread -= tocopy; in f2fs_quota_read()
2993 data += tocopy; in f2fs_quota_read()
2994 off += tocopy; in f2fs_quota_read()
3011 int tocopy; in f2fs_quota_write() local
3014 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write()
3017 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write()
3028 memcpy_to_folio(folio, offset_in_folio(folio, off), data, tocopy); in f2fs_quota_write()
3030 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write()
3033 towrite -= tocopy; in f2fs_quota_write()
3034 off += tocopy; in f2fs_quota_write()
3035 data += tocopy; in f2fs_quota_write()