projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da566e
)
Btrfs: don't wait on uptodate buffers on read
author
Chris Mason
<chris.mason@oracle.com>
Tue, 3 Apr 2007 15:43:19 +0000
(11:43 -0400)
committer
David Woodhouse
<dwmw2@hera.kernel.org>
Tue, 3 Apr 2007 15:43:19 +0000
(11:43 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index
39b117a
..
055cd45
100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-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);
@@
-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;