Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128326
b: refs/heads/master
c: 9d64272
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and David Woodhouse committed Apr 3, 2007
1 parent 5a88f86 commit 1827231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2da566edd8ce32ae2952b863ee634bcc2e7d63c1
refs/heads/master: 9d64272cd3be2aae71f89f7ababbee90a7587b33
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ struct buffer_head *read_tree_block(struct btrfs_root *root, u64 blocknr)
bh = btrfs_find_create_tree_block(root, blocknr);
if (!bh)
return bh;
if (buffer_uptodate(bh))
goto uptodate;
lock_buffer(bh);
if (!buffer_uptodate(bh)) {
get_bh(bh);
Expand All @@ -226,6 +228,7 @@ struct buffer_head *read_tree_block(struct btrfs_root *root, u64 blocknr)
} else {
unlock_buffer(bh);
}
uptodate:
if (check_tree_block(root, bh))
BUG();
return bh;
Expand Down

0 comments on commit 1827231

Please sign in to comment.