Lines Matching refs:bmap_nr_new
25 unsigned int bmap_nr_new, bmap_nr; in reiserfs_resize() local
63 bmap_nr_new = block_count_new / ( s->s_blocksize * 8 ); in reiserfs_resize()
64 block_r_new = block_count_new - bmap_nr_new * s->s_blocksize * 8; in reiserfs_resize()
66 bmap_nr_new++; in reiserfs_resize()
75 if (bmap_nr_new > bmap_nr) { in reiserfs_resize()
77 if (reiserfs_allocate_list_bitmaps(s, jbitmap, bmap_nr_new) < 0) { in reiserfs_resize()
89 copy_size = bmap_nr_new < bmap_nr ? bmap_nr_new : bmap_nr ; in reiserfs_resize()
107 bitmap = vmalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new); in reiserfs_resize()
114 for (i = bmap_nr; i < bmap_nr_new; i++) { in reiserfs_resize()
145 reiserfs_prepare_for_journal(s, SB_AP_BITMAP(s)[bmap_nr_new - 1].bh, 1); in reiserfs_resize()
148 SB_AP_BITMAP(s)[bmap_nr_new - 1].bh->b_data); in reiserfs_resize()
149 journal_mark_dirty(&th, s, SB_AP_BITMAP(s)[bmap_nr_new - 1].bh); in reiserfs_resize()
151 SB_AP_BITMAP(s)[bmap_nr_new - 1].free_count -= s->s_blocksize * 8 - block_r_new; in reiserfs_resize()
153 if ( !SB_AP_BITMAP(s)[bmap_nr_new - 1].free_count ) in reiserfs_resize()
154 SB_AP_BITMAP(s)[bmap_nr_new - 1].first_zero_hint = 0; in reiserfs_resize()
158 PUT_SB_FREE_BLOCKS(s, free_blocks + (block_count_new - block_count - (bmap_nr_new - bmap_nr))); in reiserfs_resize()
160 PUT_SB_BMAP_NR(s, bmap_nr_new); in reiserfs_resize()