Lines Matching refs:tocopy
3069 int tocopy; in f2fs_quota_read() local
3095 tocopy = min(folio_size(folio) - offset, toread); in f2fs_quota_read()
3110 memcpy_from_folio(data, folio, offset, tocopy); in f2fs_quota_read()
3113 toread -= tocopy; in f2fs_quota_read()
3114 data += tocopy; in f2fs_quota_read()
3115 off += tocopy; in f2fs_quota_read()
3132 int tocopy; in f2fs_quota_write() local
3135 tocopy = min_t(unsigned long, sb->s_blocksize - offset, in f2fs_quota_write()
3138 err = a_ops->write_begin(NULL, mapping, off, tocopy, in f2fs_quota_write()
3149 memcpy_to_folio(folio, offset_in_folio(folio, off), data, tocopy); in f2fs_quota_write()
3151 a_ops->write_end(NULL, mapping, off, tocopy, tocopy, in f2fs_quota_write()
3154 towrite -= tocopy; in f2fs_quota_write()
3155 off += tocopy; in f2fs_quota_write()
3156 data += tocopy; in f2fs_quota_write()