Home
last modified time | relevance | path

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

/fs/ext4/
Dmove_extent.c635 int unwritten, cur_len; in ext4_move_extents() local
643 cur_len = ext4_ext_get_actual_len(ex); in ext4_move_extents()
645 if (cur_blk + cur_len - 1 < o_start) { in ext4_move_extents()
663 cur_len += cur_blk - o_start; in ext4_move_extents()
666 if (o_end - o_start < cur_len) in ext4_move_extents()
667 cur_len = o_end - o_start; in ext4_move_extents()
674 if (cur_len > blocks_per_page- offset_in_page) in ext4_move_extents()
675 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents()
687 offset_in_page, cur_len, in ext4_move_extents()
692 o_start += cur_len; in ext4_move_extents()
[all …]
/fs/exofs/
Dore.c595 struct ore_per_dev_state *per_dev, int cur_len) in _ore_add_stripe_unit() argument
600 unsigned len = cur_len; in _ore_add_stripe_unit()
624 while (cur_len > 0) { in _ore_add_stripe_unit()
625 unsigned pglen = min_t(unsigned, PAGE_SIZE - pgbase, cur_len); in _ore_add_stripe_unit()
628 cur_len -= pglen; in _ore_add_stripe_unit()
638 BIO_MAX_PAGES_KMALLOC, cur_len); in _ore_add_stripe_unit()
647 BUG_ON(cur_len); in _ore_add_stripe_unit()
664 unsigned cur_len) in _add_parity_units() argument
682 ret = _ore_add_parity_unit(ios, si, per_dev, cur_len, in _add_parity_units()
720 unsigned cur_len, page_off = 0; in _prepare_for_striping() local
[all …]
Dore_raid.h38 void _ore_add_sg_seg(struct ore_per_dev_state *per_dev, unsigned cur_len,
41 struct ore_per_dev_state *per_dev, unsigned cur_len,
60 struct ore_per_dev_state *per_dev, int cur_len);
Dore_raid.c270 void _ore_add_sg_seg(struct ore_per_dev_state *per_dev, unsigned cur_len, in _ore_add_sg_seg() argument
277 per_dev->dev, cur_len, not_last, per_dev->cur_sg, in _ore_add_sg_seg()
295 per_dev->offset += cur_len; in _ore_add_sg_seg()
309 next_sge->offset = sge->offset + sge->len + cur_len; in _ore_add_sg_seg()
627 unsigned cur_len, bool do_xor) in _ore_add_parity_unit() argument
635 _ore_add_sg_seg(per_dev, cur_len, true); in _ore_add_parity_unit()
655 if (!cur_len && do_xor) in _ore_add_parity_unit()
/fs/cifs/
Dfile.c2436 size_t get_numpages(const size_t wsize, const size_t len, size_t *cur_len) in get_numpages() argument
2444 if (cur_len) in get_numpages()
2445 *cur_len = clen; in get_numpages()
2485 size_t save_len, copied, bytes, cur_len = *len; in wdata_fill_from_iovec() local
2488 save_len = cur_len; in wdata_fill_from_iovec()
2490 bytes = min_t(const size_t, cur_len, PAGE_SIZE); in wdata_fill_from_iovec()
2492 cur_len -= copied; in wdata_fill_from_iovec()
2503 cur_len = save_len - cur_len; in wdata_fill_from_iovec()
2504 *len = cur_len; in wdata_fill_from_iovec()
2512 if (!cur_len) in wdata_fill_from_iovec()
[all …]
Dcifssmb.c1965 unsigned int j, nr_pages, wsize, tailsz, cur_len; in cifs_writev_requeue() local
1974 cur_len = nr_pages * PAGE_CACHE_SIZE; in cifs_writev_requeue()
1978 cur_len = rest_len; in cifs_writev_requeue()
1999 wdata2->bytes = cur_len; in cifs_writev_requeue()
2026 rest_len -= cur_len; in cifs_writev_requeue()
/fs/btrfs/
Ddisk-io.c285 unsigned long cur_len; in csum_tree_block() local
300 cur_len = min(len, map_len - (offset - map_start)); in csum_tree_block()
302 crc, cur_len); in csum_tree_block()
303 len -= cur_len; in csum_tree_block()
304 offset += cur_len; in csum_tree_block()
Dsend.c4495 unsigned cur_len = min_t(unsigned, len, in fill_read_buf() local
4515 memcpy(sctx->read_buf + ret, addr + pg_offset, cur_len); in fill_read_buf()
4521 len -= cur_len; in fill_read_buf()
4522 ret += cur_len; in fill_read_buf()
/fs/reiserfs/
Djournal.c1794 unsigned long cur_len; in flush_used_journal_lists() local
1814 cur_len = atomic_read(&tjl->j_nonzerolen); in flush_used_journal_lists()
1815 if (cur_len > 0) { in flush_used_journal_lists()
1818 len += cur_len; in flush_used_journal_lists()