Searched refs:towrite (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/fs/jfs/
H A Dsuper.c791 size_t towrite = len; jfs_quota_write() local
796 while (towrite > 0) { jfs_quota_write()
797 tocopy = sb->s_blocksize - offset < towrite ? jfs_quota_write()
798 sb->s_blocksize - offset : towrite; jfs_quota_write()
821 towrite -= tocopy; jfs_quota_write()
826 if (len == towrite) { jfs_quota_write()
830 if (inode->i_size < off+len-towrite) jfs_quota_write()
831 i_size_write(inode, off+len-towrite); jfs_quota_write()
836 return len - towrite; jfs_quota_write()
/linux-4.4.14/drivers/mtd/maps/
H A Dpcmciamtd.c194 int towrite = win_size - (to & (win_size-1)); pcmcia_copy_to_remap() local
197 if(towrite > len) pcmcia_copy_to_remap()
198 towrite = len; pcmcia_copy_to_remap()
204 pr_debug("memcpy from %p to %p len = %d\n", from, addr, towrite); pcmcia_copy_to_remap()
205 memcpy_toio(addr, from, towrite); pcmcia_copy_to_remap()
206 len -= towrite; pcmcia_copy_to_remap()
207 to += towrite; pcmcia_copy_to_remap()
208 from += towrite; pcmcia_copy_to_remap()
/linux-4.4.14/fs/jffs2/
H A Dwbuf.c415 uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); jffs2_wbuf_recover() local
418 towrite, ofs); jffs2_wbuf_recover()
425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); jffs2_wbuf_recover()
429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, jffs2_wbuf_recover()
432 if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { jffs2_wbuf_recover()
444 c->wbuf_len = (end - start) - towrite; jffs2_wbuf_recover()
445 c->wbuf_ofs = ofs + towrite; jffs2_wbuf_recover()
446 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); jffs2_wbuf_recover()
/linux-4.4.14/fs/ext2/
H A Dsuper.c1501 size_t towrite = len; ext2_quota_write() local
1505 while (towrite > 0) { ext2_quota_write()
1506 tocopy = sb->s_blocksize - offset < towrite ? ext2_quota_write()
1507 sb->s_blocksize - offset : towrite; ext2_quota_write()
1530 towrite -= tocopy; ext2_quota_write()
1535 if (len == towrite) ext2_quota_write()
1537 if (inode->i_size < off+len-towrite) ext2_quota_write()
1538 i_size_write(inode, off+len-towrite); ext2_quota_write()
1542 return len - towrite; ext2_quota_write()
/linux-4.4.14/fs/reiserfs/
H A Dsuper.c2460 size_t towrite = len; reiserfs_quota_write() local
2468 while (towrite > 0) { reiserfs_quota_write()
2469 tocopy = sb->s_blocksize - offset < towrite ? reiserfs_quota_write()
2470 sb->s_blocksize - offset : towrite; reiserfs_quota_write()
2498 towrite -= tocopy; reiserfs_quota_write()
2503 if (len == towrite) reiserfs_quota_write()
2505 if (inode->i_size < off + len - towrite) reiserfs_quota_write()
2506 i_size_write(inode, off + len - towrite); reiserfs_quota_write()
2510 return len - towrite; reiserfs_quota_write()
/linux-4.4.14/drivers/md/
H A Draid5.h247 struct bio *toread, *read, *towrite, *written; member in struct:stripe_head::r5dev
283 R5_OVERWRITE, /* towrite covers whole page */
301 R5_Wantdrain, /* dev->towrite needs to be drained */
H A Draid5.c542 if (dev->toread || dev->read || dev->towrite || dev->written || init_stripe()
546 dev->read, dev->towrite, dev->written, init_stripe()
811 if (head->dev[dd_idx].towrite->bi_rw != sh->dev[dd_idx].towrite->bi_rw) stripe_add_to_batch_list()
1614 chosen = dev->towrite; ops_run_biodrain()
1615 dev->towrite = NULL; ops_run_biodrain()
2869 if (dev->towrite) { schedule_reconstruction()
2907 if (dev->towrite && schedule_reconstruction()
2948 * toread/towrite point to the first in a chain.
2975 bip = &sh->dev[dd_idx].towrite; add_stripe_bio()
3000 for (bi=sh->dev[dd_idx].towrite; add_stripe_bio()
3101 bi = sh->dev[i].towrite; handle_failed_stripe()
3102 sh->dev[i].towrite = NULL; handle_failed_stripe()
3278 (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags))) need_this_block()
3317 if (fdev[i]->towrite && need_this_block()
3583 if ((dev->towrite || i == sh->pd_idx || i == sh->qd_idx) && handle_stripe_dirtying()
3615 if ((dev->towrite || i == sh->pd_idx || i == sh->qd_idx) && handle_stripe_dirtying()
4038 dev->toread, dev->towrite, dev->written); analyse_stripe()
4062 if (dev->towrite) { analyse_stripe()
5097 if (sh->dev[d].towrite || sh->dev[d].toread) { make_discard_request()
5111 sh->dev[d].towrite = bi; make_discard_request()
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c4252 unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); kvm_write_guest_virt_system() local
4257 ret = kvm_vcpu_write_guest(vcpu, gpa, data, towrite); kvm_write_guest_virt_system()
4263 bytes -= towrite; kvm_write_guest_virt_system()
4264 data += towrite; kvm_write_guest_virt_system()
4265 addr += towrite; kvm_write_guest_virt_system()

Completed in 390 milliseconds