diff options
Diffstat (limited to 'fs/reiserfs/bitmap.c')
-rw-r--r-- | fs/reiserfs/bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c index e716161ab325..147033461b87 100644 --- a/fs/reiserfs/bitmap.c +++ b/fs/reiserfs/bitmap.c | |||
@@ -1256,7 +1256,9 @@ struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb, | |||
1256 | else { | 1256 | else { |
1257 | if (buffer_locked(bh)) { | 1257 | if (buffer_locked(bh)) { |
1258 | PROC_INFO_INC(sb, scan_bitmap.wait); | 1258 | PROC_INFO_INC(sb, scan_bitmap.wait); |
1259 | reiserfs_write_unlock(sb); | ||
1259 | __wait_on_buffer(bh); | 1260 | __wait_on_buffer(bh); |
1261 | reiserfs_write_lock(sb); | ||
1260 | } | 1262 | } |
1261 | BUG_ON(!buffer_uptodate(bh)); | 1263 | BUG_ON(!buffer_uptodate(bh)); |
1262 | BUG_ON(atomic_read(&bh->b_count) == 0); | 1264 | BUG_ON(atomic_read(&bh->b_count) == 0); |