Lines Matching refs:tocopy
701 int tocopy; in jfs_quota_read() local
713 tocopy = min_t(size_t, sb->s_blocksize - offset, toread); in jfs_quota_read()
721 memset(data, 0, tocopy); in jfs_quota_read()
726 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read()
730 toread -= tocopy; in jfs_quota_read()
731 data += tocopy; in jfs_quota_read()
745 int tocopy; in jfs_quota_write() local
752 tocopy = min_t(size_t, sb->s_blocksize - offset, towrite); in jfs_quota_write()
759 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
768 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
775 towrite -= tocopy; in jfs_quota_write()
776 data += tocopy; in jfs_quota_write()