diff --git a/[refs] b/[refs] index a3108c390bdf..7eaa8d02425f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f2a09af645b762f8230e7eba7fee3b6f7e6e96e7 +refs/heads/master: 7f1468d1d50d368097ab13596dc08eaba7eace7f diff --git a/trunk/fs/ext4/resize.c b/trunk/fs/ext4/resize.c index 9f821ce39800..f21fdbf5c75d 100644 --- a/trunk/fs/ext4/resize.c +++ b/trunk/fs/ext4/resize.c @@ -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; }