Lines Matching refs:lb
22 struct migrate_struct *lb) in finish_range() argument
28 if (lb->first_pblock == 0) in finish_range()
32 newext.ee_block = cpu_to_le32(lb->first_block); in finish_range()
33 newext.ee_len = cpu_to_le16(lb->last_block - lb->first_block + 1); in finish_range()
34 ext4_ext_store_pblock(&newext, lb->first_pblock); in finish_range()
37 path = ext4_find_extent(inode, lb->first_block, NULL, 0); in finish_range()
50 lb->last_block - lb->first_block + 1, path); in finish_range()
61 lb->first_pblock = 0; in finish_range()
66 ext4_fsblk_t pblock, struct migrate_struct *lb) in update_extent_range() argument
72 if (lb->first_pblock && in update_extent_range()
73 (lb->last_pblock+1 == pblock) && in update_extent_range()
74 (lb->last_block+1 == lb->curr_block)) { in update_extent_range()
75 lb->last_pblock = pblock; in update_extent_range()
76 lb->last_block = lb->curr_block; in update_extent_range()
77 lb->curr_block++; in update_extent_range()
83 retval = finish_range(handle, inode, lb); in update_extent_range()
84 lb->first_pblock = lb->last_pblock = pblock; in update_extent_range()
85 lb->first_block = lb->last_block = lb->curr_block; in update_extent_range()
86 lb->curr_block++; in update_extent_range()
92 struct migrate_struct *lb) in update_ind_extent_range() argument
107 le32_to_cpu(i_data[i]), lb); in update_ind_extent_range()
111 lb->curr_block++; in update_ind_extent_range()
121 struct migrate_struct *lb) in update_dind_extent_range() argument
136 le32_to_cpu(i_data[i]), lb); in update_dind_extent_range()
141 lb->curr_block += max_entries; in update_dind_extent_range()
151 struct migrate_struct *lb) in update_tind_extent_range() argument
166 le32_to_cpu(i_data[i]), lb); in update_tind_extent_range()
171 lb->curr_block += max_entries * max_entries; in update_tind_extent_range()
417 struct migrate_struct lb; in ext4_ext_migrate() local
508 memset(&lb, 0, sizeof(lb)); in ext4_ext_migrate()
515 le32_to_cpu(i_data[i]), &lb); in ext4_ext_migrate()
519 lb.curr_block++; in ext4_ext_migrate()
523 le32_to_cpu(i_data[EXT4_IND_BLOCK]), &lb); in ext4_ext_migrate()
527 lb.curr_block += max_entries; in ext4_ext_migrate()
530 le32_to_cpu(i_data[EXT4_DIND_BLOCK]), &lb); in ext4_ext_migrate()
534 lb.curr_block += max_entries * max_entries; in ext4_ext_migrate()
537 le32_to_cpu(i_data[EXT4_TIND_BLOCK]), &lb); in ext4_ext_migrate()
544 retval = finish_range(handle, tmp_inode, &lb); in ext4_ext_migrate()