Home
last modified time | relevance | path

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

/fs/ext4/
Dmove_extent.c606 int unwritten, cur_len; in ext4_move_extents() local
614 cur_len = ext4_ext_get_actual_len(ex); in ext4_move_extents()
616 if (cur_blk + cur_len - 1 < o_start) { in ext4_move_extents()
634 cur_len += cur_blk - o_start; in ext4_move_extents()
637 if (o_end - o_start < cur_len) in ext4_move_extents()
638 cur_len = o_end - o_start; in ext4_move_extents()
645 if (cur_len > blocks_per_page- offset_in_page) in ext4_move_extents()
646 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents()
658 offset_in_page, cur_len, in ext4_move_extents()
663 o_start += cur_len; in ext4_move_extents()
[all …]
/fs/exofs/
Dore_raid.h56 void _ore_add_sg_seg(struct ore_per_dev_state *per_dev, unsigned cur_len,
59 struct ore_per_dev_state *per_dev, unsigned cur_len);
77 struct ore_per_dev_state *per_dev, int cur_len);
Dore.c577 struct ore_per_dev_state *per_dev, int cur_len) in _ore_add_stripe_unit() argument
582 unsigned len = cur_len; in _ore_add_stripe_unit()
603 while (cur_len > 0) { in _ore_add_stripe_unit()
604 unsigned pglen = min_t(unsigned, PAGE_SIZE - pgbase, cur_len); in _ore_add_stripe_unit()
607 cur_len -= pglen; in _ore_add_stripe_unit()
622 BUG_ON(cur_len); in _ore_add_stripe_unit()
663 unsigned cur_len, page_off = 0; in _prepare_for_striping() local
670 cur_len = stripe_unit - si->unit_off; in _prepare_for_striping()
681 cur_len = stripe_unit; in _prepare_for_striping()
684 cur_len = stripe_unit; in _prepare_for_striping()
[all …]
Dore_raid.c264 void _ore_add_sg_seg(struct ore_per_dev_state *per_dev, unsigned cur_len, in _ore_add_sg_seg() argument
271 per_dev->dev, cur_len, not_last, per_dev->cur_sg, in _ore_add_sg_seg()
289 per_dev->offset += cur_len; in _ore_add_sg_seg()
303 next_sge->offset = sge->offset + sge->len + cur_len; in _ore_add_sg_seg()
623 unsigned cur_len) in _ore_add_parity_unit() argument
631 _ore_add_sg_seg(per_dev, cur_len, true); in _ore_add_parity_unit()
643 if (!cur_len) /* If last stripe operate on parity comp */ in _ore_add_parity_unit()
653 if (!cur_len) /* If last stripe r4w pages of last stripe */ in _ore_add_parity_unit()
/fs/cifs/
Dfile.c2292 size_t get_numpages(const size_t wsize, const size_t len, size_t *cur_len) in get_numpages() argument
2300 if (cur_len) in get_numpages()
2301 *cur_len = clen; in get_numpages()
2357 size_t copied, len, cur_len; in cifs_iovec_write() local
2396 nr_pages = get_numpages(cifs_sb->wsize, len, &cur_len); in cifs_iovec_write()
2410 save_len = cur_len; in cifs_iovec_write()
2412 copied = min_t(const size_t, cur_len, PAGE_SIZE); in cifs_iovec_write()
2415 cur_len -= copied; in cifs_iovec_write()
2418 cur_len = save_len - cur_len; in cifs_iovec_write()
2425 wdata->bytes = cur_len; in cifs_iovec_write()
[all …]
/fs/btrfs/
Ddisk-io.c264 unsigned long cur_len; in csum_tree_block() local
279 cur_len = min(len, map_len - (offset - map_start)); in csum_tree_block()
281 crc, cur_len); in csum_tree_block()
282 len -= cur_len; in csum_tree_block()
283 offset += cur_len; in csum_tree_block()
/fs/reiserfs/
Djournal.c1773 unsigned long cur_len; in flush_used_journal_lists() local
1793 cur_len = atomic_read(&tjl->j_nonzerolen); in flush_used_journal_lists()
1794 if (cur_len > 0) { in flush_used_journal_lists()
1797 len += cur_len; in flush_used_journal_lists()