Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331595
b: refs/heads/master
c: 7f1468d
h: refs/heads/master
i:
  331593: 094b965
  331591: f2f6a28
v: v3
  • Loading branch information
Dmitry Monakhov authored and Theodore Ts'o committed Sep 26, 2012
1 parent ae53e96 commit 727e1d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2a09af645b762f8230e7eba7fee3b6f7e6e96e7
refs/heads/master: 7f1468d1d50d368097ab13596dc08eaba7eace7f
15 changes: 5 additions & 10 deletions trunk/fs/ext4/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,17 +1181,12 @@ static struct buffer_head *ext4_get_bitmap(struct super_block *sb, __u64 block)
struct buffer_head *bh = sb_getblk(sb, block);
if (!bh)
return NULL;

if (bitmap_uptodate(bh))
return bh;

lock_buffer(bh);
if (bh_submit_read(bh) < 0) {
unlock_buffer(bh);
brelse(bh);
return NULL;
if (!bh_uptodate_or_lock(bh)) {
if (bh_submit_read(bh) < 0) {
brelse(bh);
return NULL;
}
}
unlock_buffer(bh);

return bh;
}
Expand Down

0 comments on commit 727e1d0

Please sign in to comment.