Lines Matching refs:m_len
416 if (!ext4_inode_block_valid(inode, map->m_pblk, map->m_len)) { in __check_block_validity()
420 map->m_pblk, map->m_len); in __check_block_validity()
479 inode->i_ino, es_map->m_lblk, es_map->m_len, in ext4_map_blocks_es_recheck()
481 map->m_len, map->m_pblk, map->m_flags, in ext4_map_blocks_es_recheck()
523 flags, map->m_len, (unsigned long) map->m_lblk); in ext4_map_blocks()
528 if (unlikely(map->m_len > INT_MAX)) in ext4_map_blocks()
529 map->m_len = INT_MAX; in ext4_map_blocks()
544 if (retval > map->m_len) in ext4_map_blocks()
545 retval = map->m_len; in ext4_map_blocks()
546 map->m_len = retval; in ext4_map_blocks()
550 if (retval > map->m_len) in ext4_map_blocks()
551 retval = map->m_len; in ext4_map_blocks()
552 map->m_len = retval; in ext4_map_blocks()
577 if (unlikely(retval != map->m_len)) { in ext4_map_blocks()
581 inode->i_ino, retval, map->m_len); in ext4_map_blocks()
590 map->m_lblk + map->m_len - 1)) in ext4_map_blocks()
593 map->m_len, map->m_pblk, status); in ext4_map_blocks()
672 if (unlikely(retval != map->m_len)) { in ext4_map_blocks()
676 inode->i_ino, retval, map->m_len); in ext4_map_blocks()
691 map->m_pblk, map->m_len); in ext4_map_blocks()
712 map->m_lblk + map->m_len - 1)) in ext4_map_blocks()
714 ret = ext4_es_insert_extent(inode, map->m_lblk, map->m_len, in ext4_map_blocks()
741 loff_t length = (loff_t)map->m_len << inode->i_blkbits; in ext4_map_blocks()
756 map->m_lblk + map->m_len - 1); in ext4_map_blocks()
800 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block()
807 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
811 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
855 map.m_len = 1; in ext4_getblk()
1723 ext_debug(inode, "max_blocks %u, logical block %lu\n", map->m_len, in ext4_da_map_blocks()
1747 if (retval > map->m_len) in ext4_da_map_blocks()
1748 retval = map->m_len; in ext4_da_map_blocks()
1749 map->m_len = retval; in ext4_da_map_blocks()
1797 if (unlikely(retval != map->m_len)) { in ext4_da_map_blocks()
1801 inode->i_ino, retval, map->m_len); in ext4_da_map_blocks()
1807 ret = ext4_es_insert_extent(inode, map->m_lblk, map->m_len, in ext4_da_map_blocks()
1841 map.m_len = 1; in ext4_da_get_block_prep()
2183 if (map->m_len == 0) in mpage_add_bh_to_extent()
2189 if (map->m_len == 0) { in mpage_add_bh_to_extent()
2194 map->m_len = 1; in mpage_add_bh_to_extent()
2200 if (map->m_len >= MAX_WRITEPAGES_EXTENT_LEN) in mpage_add_bh_to_extent()
2204 if (lblk == map->m_lblk + map->m_len && in mpage_add_bh_to_extent()
2206 map->m_len++; in mpage_add_bh_to_extent()
2246 if (mpd->map.m_len) in mpage_process_page_bufs()
2256 if (mpd->map.m_len == 0) { in mpage_process_page_bufs()
2300 if (lblk >= mpd->map.m_lblk + mpd->map.m_len) { in mpage_process_page()
2305 mpd->map.m_len = 0; in mpage_process_page()
2313 if (!err && mpd->map.m_len && mpd->map.m_lblk > lblk) { in mpage_process_page()
2368 end = (mpd->map.m_lblk + mpd->map.m_len - 1) >> bpp_bits; in mpage_map_and_submit_buffers()
2398 mpd->map.m_len = 0; in mpage_map_and_submit_buffers()
2450 BUG_ON(map->m_len == 0); in mpage_map_one_extent()
2515 (unsigned)map->m_len, -err); in mpage_map_and_submit_extent()
2533 } while (map->m_len); in mpage_map_and_submit_extent()
2617 mpd->map.m_len = 0; in mpage_prepare_extent_to_map()
2640 if (mpd->map.m_len > 0 && mpd->next_page != page->index) in mpage_prepare_extent_to_map()
2684 if (mpd->map.m_len == 0) in mpage_prepare_extent_to_map()
2864 if (!ret && mpd.map.m_len) in ext4_writepages()
3370 iomap->length = (u64) map->m_len << blkbits; in ext4_set_iomap()
3408 if (map->m_len > DIO_MAX_BLOCKS) in ext4_iomap_alloc()
3409 map->m_len = DIO_MAX_BLOCKS; in ext4_iomap_alloc()
3410 dio_credits = ext4_chunk_trans_blocks(inode, map->m_len); in ext4_iomap_alloc()
3476 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin()
3550 ext4_lblk_t offset = 0, end = map->m_lblk + map->m_len - 1; in ext4_iomap_is_delalloc()
3559 map->m_len = es.es_lblk - map->m_lblk; in ext4_iomap_is_delalloc()
3564 map->m_len = es.es_len - offset; in ext4_iomap_is_delalloc()
3594 map.m_len = min_t(loff_t, (offset + length - 1) >> blkbits, in ext4_iomap_begin_report()