Commit 4c5254cd authored by Oleg Drokin's avatar Oleg Drokin

reiserfs: Move mark_buffer_uptodate in front of mark_buffer_dirty in resizer.

  This is needed because mark_buffer_dirty is now checking if buffer is up to date.
  Noticed by Alex Tomas <bzzz@tmi.comex.ru>
parent 1255448c
...@@ -118,8 +118,8 @@ int reiserfs_resize (struct super_block * s, unsigned long block_count_new) ...@@ -118,8 +118,8 @@ int reiserfs_resize (struct super_block * s, unsigned long block_count_new)
memset(bitmap[i].bh->b_data, 0, sb_blocksize(sb)); memset(bitmap[i].bh->b_data, 0, sb_blocksize(sb));
reiserfs_test_and_set_le_bit(0, bitmap[i].bh->b_data); reiserfs_test_and_set_le_bit(0, bitmap[i].bh->b_data);
mark_buffer_dirty(bitmap[i].bh) ;
set_buffer_uptodate(bitmap[i].bh); set_buffer_uptodate(bitmap[i].bh);
mark_buffer_dirty(bitmap[i].bh) ;
sync_dirty_buffer(bitmap[i].bh); sync_dirty_buffer(bitmap[i].bh);
// update bitmap_info stuff // update bitmap_info stuff
bitmap[i].first_zero_hint=1; bitmap[i].first_zero_hint=1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment