Home
last modified time | relevance | path

Searched refs:towrite (Results 1 – 7 of 7) sorted by relevance

/fs/jfs/
Dsuper.c684 size_t towrite = len; in jfs_quota_write() local
689 while (towrite > 0) { in jfs_quota_write()
690 tocopy = sb->s_blocksize - offset < towrite ? in jfs_quota_write()
691 sb->s_blocksize - offset : towrite; in jfs_quota_write()
714 towrite -= tocopy; in jfs_quota_write()
719 if (len == towrite) in jfs_quota_write()
721 if (inode->i_size < off+len-towrite) in jfs_quota_write()
722 i_size_write(inode, off+len-towrite); in jfs_quota_write()
727 return len - towrite; in jfs_quota_write()
/fs/ext2/
Dsuper.c1363 size_t towrite = len; in ext2_quota_write() local
1368 while (towrite > 0) { in ext2_quota_write()
1369 tocopy = sb->s_blocksize - offset < towrite ? in ext2_quota_write()
1370 sb->s_blocksize - offset : towrite; in ext2_quota_write()
1392 towrite -= tocopy; in ext2_quota_write()
1397 if (len == towrite) in ext2_quota_write()
1399 if (inode->i_size < off+len-towrite) in ext2_quota_write()
1400 i_size_write(inode, off+len-towrite); in ext2_quota_write()
1405 return len - towrite; in ext2_quota_write()
/fs/jffs2/
Dwbuf.c406 uint32_t towrite = (end-start) - ((end-start)%c->wbuf_pagesize); in jffs2_wbuf_recover() local
409 towrite, ofs)); in jffs2_wbuf_recover()
416 c->mtd->write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover()
421 ret = c->mtd->write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover()
424 if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { in jffs2_wbuf_recover()
436 c->wbuf_len = (end - start) - towrite; in jffs2_wbuf_recover()
437 c->wbuf_ofs = ofs + towrite; in jffs2_wbuf_recover()
438 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); in jffs2_wbuf_recover()
/fs/ufs/
Dsuper.c1403 size_t towrite = len; in ufs_quota_write() local
1407 while (towrite > 0) { in ufs_quota_write()
1408 tocopy = sb->s_blocksize - offset < towrite ? in ufs_quota_write()
1409 sb->s_blocksize - offset : towrite; in ufs_quota_write()
1422 towrite -= tocopy; in ufs_quota_write()
1427 if (len == towrite) { in ufs_quota_write()
1431 if (inode->i_size < off+len-towrite) in ufs_quota_write()
1432 i_size_write(inode, off+len-towrite); in ufs_quota_write()
1437 return len - towrite; in ufs_quota_write()
/fs/reiserfs/
Dsuper.c2180 size_t towrite = len; in reiserfs_quota_write() local
2190 while (towrite > 0) { in reiserfs_quota_write()
2191 tocopy = sb->s_blocksize - offset < towrite ? in reiserfs_quota_write()
2192 sb->s_blocksize - offset : towrite; in reiserfs_quota_write()
2216 towrite -= tocopy; in reiserfs_quota_write()
2221 if (len == towrite) { in reiserfs_quota_write()
2225 if (inode->i_size < off + len - towrite) in reiserfs_quota_write()
2226 i_size_write(inode, off + len - towrite); in reiserfs_quota_write()
2231 return len - towrite; in reiserfs_quota_write()
/fs/ext3/
Dsuper.c2953 size_t towrite = len; in ext3_quota_write() local
2964 while (towrite > 0) { in ext3_quota_write()
2965 tocopy = sb->s_blocksize - offset < towrite ? in ext3_quota_write()
2966 sb->s_blocksize - offset : towrite; in ext3_quota_write()
2992 towrite -= tocopy; in ext3_quota_write()
2997 if (len == towrite) { in ext3_quota_write()
3001 if (inode->i_size < off+len-towrite) { in ext3_quota_write()
3002 i_size_write(inode, off+len-towrite); in ext3_quota_write()
3009 return len - towrite; in ext3_quota_write()
/fs/ext4/
Dsuper.c3620 size_t towrite = len; in ext4_quota_write() local
3631 while (towrite > 0) { in ext4_quota_write()
3632 tocopy = sb->s_blocksize - offset < towrite ? in ext4_quota_write()
3633 sb->s_blocksize - offset : towrite; in ext4_quota_write()
3659 towrite -= tocopy; in ext4_quota_write()
3664 if (len == towrite) { in ext4_quota_write()
3668 if (inode->i_size < off+len-towrite) { in ext4_quota_write()
3669 i_size_write(inode, off+len-towrite); in ext4_quota_write()
3675 return len - towrite; in ext4_quota_write()