Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9d64272c
Commit
9d64272c
authored
Apr 03, 2007
by
Chris Mason
Committed by
David Woodhouse
Apr 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: don't wait on uptodate buffers on read
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
2da566ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+3
-0
No files found.
fs/btrfs/disk-io.c
View file @
9d64272c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment