]> git.neil.brown.name Git - history.git/commitdiff
reiserfs: Move mark_buffer_uptodate in front of mark_buffer_dirty in resizer.
authorOleg Drokin <green@angband.namesys.com>
Fri, 14 Feb 2003 14:38:49 +0000 (17:38 +0300)
committerOleg Drokin <green@angband.namesys.com>
Fri, 14 Feb 2003 14:38:49 +0000 (17:38 +0300)
  This is needed because mark_buffer_dirty is now checking if buffer is up to date.
  Noticed by Alex Tomas <bzzz@tmi.comex.ru>

fs/reiserfs/resize.c

index e5c6bc5aaf36a11be35f691d7d0e6c3d14019334..c569276fe18812eb0b072c43d0acf1e642b190ed 100644 (file)
@@ -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));
                reiserfs_test_and_set_le_bit(0, bitmap[i].bh->b_data);
 
-               mark_buffer_dirty(bitmap[i].bh) ;
                set_buffer_uptodate(bitmap[i].bh);
+               mark_buffer_dirty(bitmap[i].bh) ;
                sync_dirty_buffer(bitmap[i].bh);
                // update bitmap_info stuff
                bitmap[i].first_zero_hint=1;