Lines Matching refs:map

897 	struct ext4_map_blocks map;  in ext4_fc_write_inode_data()  local
918 map.m_lblk = cur_lblk_off; in ext4_fc_write_inode_data()
919 map.m_len = new_blk_size - cur_lblk_off + 1; in ext4_fc_write_inode_data()
920 ret = ext4_map_blocks(NULL, inode, &map, in ext4_fc_write_inode_data()
926 if (map.m_len == 0) { in ext4_fc_write_inode_data()
933 lrange.fc_lblk = cpu_to_le32(map.m_lblk); in ext4_fc_write_inode_data()
934 lrange.fc_len = cpu_to_le32(map.m_len); in ext4_fc_write_inode_data()
939 unsigned int max = (map.m_flags & EXT4_MAP_UNWRITTEN) ? in ext4_fc_write_inode_data()
943 map.m_len = min(max, map.m_len); in ext4_fc_write_inode_data()
947 ex->ee_block = cpu_to_le32(map.m_lblk); in ext4_fc_write_inode_data()
948 ex->ee_len = cpu_to_le16(map.m_len); in ext4_fc_write_inode_data()
949 ext4_ext_store_pblock(ex, map.m_pblk); in ext4_fc_write_inode_data()
950 if (map.m_flags & EXT4_MAP_UNWRITTEN) in ext4_fc_write_inode_data()
959 cur_lblk_off += map.m_len; in ext4_fc_write_inode_data()
1763 struct ext4_map_blocks map; in ext4_fc_replay_add_range() local
1795 map.m_lblk = cur; in ext4_fc_replay_add_range()
1796 map.m_len = remaining; in ext4_fc_replay_add_range()
1797 map.m_pblk = 0; in ext4_fc_replay_add_range()
1798 ret = ext4_map_blocks(NULL, inode, &map, 0); in ext4_fc_replay_add_range()
1812 newex.ee_len = cpu_to_le16(map.m_len); in ext4_fc_replay_add_range()
1824 if (start_pblk + cur - start != map.m_pblk) { in ext4_fc_replay_add_range()
1830 ret = ext4_ext_replay_update_ex(inode, cur, map.m_len, in ext4_fc_replay_add_range()
1844 ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false); in ext4_fc_replay_add_range()
1850 map.m_flags & EXT4_MAP_UNWRITTEN, in ext4_fc_replay_add_range()
1851 ext4_ext_is_unwritten(ex), map.m_pblk); in ext4_fc_replay_add_range()
1852 ret = ext4_ext_replay_update_ex(inode, cur, map.m_len, in ext4_fc_replay_add_range()
1853 ext4_ext_is_unwritten(ex), map.m_pblk); in ext4_fc_replay_add_range()
1862 cur += map.m_len; in ext4_fc_replay_add_range()
1863 remaining -= map.m_len; in ext4_fc_replay_add_range()
1880 struct ext4_map_blocks map; in ext4_fc_replay_del_range() local
1905 map.m_lblk = cur; in ext4_fc_replay_del_range()
1906 map.m_len = remaining; in ext4_fc_replay_del_range()
1908 ret = ext4_map_blocks(NULL, inode, &map, 0); in ext4_fc_replay_del_range()
1914 ext4_mb_mark_bb(inode->i_sb, map.m_pblk, map.m_len, false); in ext4_fc_replay_del_range()
1916 remaining -= map.m_len; in ext4_fc_replay_del_range()
1917 cur += map.m_len; in ext4_fc_replay_del_range()
1941 struct ext4_map_blocks map; in ext4_fc_set_bitmaps_and_counters() local
1961 map.m_lblk = cur; in ext4_fc_set_bitmaps_and_counters()
1962 map.m_len = end - cur; in ext4_fc_set_bitmaps_and_counters()
1964 ret = ext4_map_blocks(NULL, inode, &map, 0); in ext4_fc_set_bitmaps_and_counters()
1969 path = ext4_find_extent(inode, map.m_lblk, path, 0); in ext4_fc_set_bitmaps_and_counters()
1978 ext4_mb_mark_bb(inode->i_sb, map.m_pblk, in ext4_fc_set_bitmaps_and_counters()
1979 map.m_len, true); in ext4_fc_set_bitmaps_and_counters()
1981 cur = cur + (map.m_len ? map.m_len : 1); in ext4_fc_set_bitmaps_and_counters()