Lines Matching refs:m_len

399 	if (!ext4_inode_block_valid(inode, map->m_pblk, map->m_len)) {  in __check_block_validity()
403 map->m_pblk, map->m_len); in __check_block_validity()
462 inode->i_ino, es_map->m_lblk, es_map->m_len, in ext4_map_blocks_es_recheck()
464 map->m_len, map->m_pblk, map->m_flags, in ext4_map_blocks_es_recheck()
506 flags, map->m_len, (unsigned long) map->m_lblk); in ext4_map_blocks()
511 if (unlikely(map->m_len > INT_MAX)) in ext4_map_blocks()
512 map->m_len = INT_MAX; in ext4_map_blocks()
527 if (retval > map->m_len) in ext4_map_blocks()
528 retval = map->m_len; in ext4_map_blocks()
529 map->m_len = retval; in ext4_map_blocks()
533 if (retval > map->m_len) in ext4_map_blocks()
534 retval = map->m_len; in ext4_map_blocks()
535 map->m_len = retval; in ext4_map_blocks()
560 if (unlikely(retval != map->m_len)) { in ext4_map_blocks()
564 inode->i_ino, retval, map->m_len); in ext4_map_blocks()
573 map->m_lblk + map->m_len - 1)) in ext4_map_blocks()
576 map->m_len, map->m_pblk, status); in ext4_map_blocks()
655 if (unlikely(retval != map->m_len)) { in ext4_map_blocks()
659 inode->i_ino, retval, map->m_len); in ext4_map_blocks()
674 map->m_pblk, map->m_len); in ext4_map_blocks()
695 map->m_lblk + map->m_len - 1)) in ext4_map_blocks()
697 ret = ext4_es_insert_extent(inode, map->m_lblk, map->m_len, in ext4_map_blocks()
724 loff_t length = (loff_t)map->m_len << inode->i_blkbits; in ext4_map_blocks()
736 map->m_lblk + map->m_len - 1); in ext4_map_blocks()
782 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block()
789 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
793 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
837 map.m_len = 1; in ext4_getblk()
1701 ext_debug(inode, "max_blocks %u, logical block %lu\n", map->m_len, in ext4_da_map_blocks()
1725 if (retval > map->m_len) in ext4_da_map_blocks()
1726 retval = map->m_len; in ext4_da_map_blocks()
1727 map->m_len = retval; in ext4_da_map_blocks()
1775 if (unlikely(retval != map->m_len)) { in ext4_da_map_blocks()
1779 inode->i_ino, retval, map->m_len); in ext4_da_map_blocks()
1785 ret = ext4_es_insert_extent(inode, map->m_lblk, map->m_len, in ext4_da_map_blocks()
1819 map.m_len = 1; in ext4_da_get_block_prep()
2132 if (map->m_len == 0) in mpage_add_bh_to_extent()
2138 if (map->m_len == 0) { in mpage_add_bh_to_extent()
2143 map->m_len = 1; in mpage_add_bh_to_extent()
2149 if (map->m_len >= MAX_WRITEPAGES_EXTENT_LEN) in mpage_add_bh_to_extent()
2153 if (lblk == map->m_lblk + map->m_len && in mpage_add_bh_to_extent()
2155 map->m_len++; in mpage_add_bh_to_extent()
2195 if (mpd->map.m_len) in mpage_process_page_bufs()
2205 if (mpd->map.m_len == 0) { in mpage_process_page_bufs()
2249 if (lblk >= mpd->map.m_lblk + mpd->map.m_len) { in mpage_process_page()
2254 mpd->map.m_len = 0; in mpage_process_page()
2262 if (!err && mpd->map.m_len && mpd->map.m_lblk > lblk) { in mpage_process_page()
2317 end = (mpd->map.m_lblk + mpd->map.m_len - 1) >> bpp_bits; in mpage_map_and_submit_buffers()
2347 mpd->map.m_len = 0; in mpage_map_and_submit_buffers()
2399 BUG_ON(map->m_len == 0); in mpage_map_one_extent()
2464 (unsigned)map->m_len, -err); in mpage_map_and_submit_extent()
2482 } while (map->m_len); in mpage_map_and_submit_extent()
2566 mpd->map.m_len = 0; in mpage_prepare_extent_to_map()
2589 if (mpd->map.m_len > 0 && mpd->next_page != page->index) in mpage_prepare_extent_to_map()
2611 if (mpd->map.m_len == 0) in mpage_prepare_extent_to_map()
2791 if (!ret && mpd.map.m_len) in ext4_writepages()
3347 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap()
3385 if (map->m_len > DIO_MAX_BLOCKS) in ext4_iomap_alloc()
3386 map->m_len = DIO_MAX_BLOCKS; in ext4_iomap_alloc()
3387 dio_credits = ext4_chunk_trans_blocks(inode, map->m_len); in ext4_iomap_alloc()
3453 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin()
3527 ext4_lblk_t offset = 0, end = map->m_lblk + map->m_len - 1; in ext4_iomap_is_delalloc()
3536 map->m_len = es.es_lblk - map->m_lblk; in ext4_iomap_is_delalloc()
3541 map->m_len = es.es_len - offset; in ext4_iomap_is_delalloc()
3571 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin_report()