Lines Matching refs:tocopy
740 int tocopy; in jfs_quota_read() local
752 tocopy = sb->s_blocksize - offset < toread ? in jfs_quota_read()
761 memset(data, 0, tocopy); in jfs_quota_read()
766 memcpy(data, bh->b_data+offset, tocopy); in jfs_quota_read()
770 toread -= tocopy; in jfs_quota_read()
771 data += tocopy; in jfs_quota_read()
785 int tocopy; in jfs_quota_write() local
792 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
800 if (offset || tocopy != sb->s_blocksize) in jfs_quota_write()
809 memcpy(bh->b_data+offset, data, tocopy); in jfs_quota_write()
816 towrite -= tocopy; in jfs_quota_write()
817 data += tocopy; in jfs_quota_write()