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
Kirill Smelkov
linux
Commits
c0dcaa4d
Commit
c0dcaa4d
authored
Jun 15, 2014
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: sink blocksize parameter to reada_tree_block_flagged
Signed-off-by:
David Sterba
<
dsterba@suse.cz
>
parent
b6ae40ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+2
-2
fs/btrfs/disk-io.h
fs/btrfs/disk-io.h
+1
-1
fs/btrfs/reada.c
fs/btrfs/reada.c
+1
-1
No files found.
fs/btrfs/disk-io.c
View file @
c0dcaa4d
...
...
@@ -1086,7 +1086,7 @@ void readahead_tree_block(struct btrfs_root *root, u64 bytenr)
free_extent_buffer
(
buf
);
}
int
reada_tree_block_flagged
(
struct
btrfs_root
*
root
,
u64
bytenr
,
u32
blocksize
,
int
reada_tree_block_flagged
(
struct
btrfs_root
*
root
,
u64
bytenr
,
int
mirror_num
,
struct
extent_buffer
**
eb
)
{
struct
extent_buffer
*
buf
=
NULL
;
...
...
@@ -1094,7 +1094,7 @@ int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, u32 blocksize,
struct
extent_io_tree
*
io_tree
=
&
BTRFS_I
(
btree_inode
)
->
io_tree
;
int
ret
;
buf
=
btrfs_find_create_tree_block
(
root
,
bytenr
,
block
size
);
buf
=
btrfs_find_create_tree_block
(
root
,
bytenr
,
root
->
node
size
);
if
(
!
buf
)
return
0
;
...
...
fs/btrfs/disk-io.h
View file @
c0dcaa4d
...
...
@@ -47,7 +47,7 @@ struct btrfs_fs_devices;
struct
extent_buffer
*
read_tree_block
(
struct
btrfs_root
*
root
,
u64
bytenr
,
u64
parent_transid
);
void
readahead_tree_block
(
struct
btrfs_root
*
root
,
u64
bytenr
);
int
reada_tree_block_flagged
(
struct
btrfs_root
*
root
,
u64
bytenr
,
u32
blocksize
,
int
reada_tree_block_flagged
(
struct
btrfs_root
*
root
,
u64
bytenr
,
int
mirror_num
,
struct
extent_buffer
**
eb
);
struct
extent_buffer
*
btrfs_find_create_tree_block
(
struct
btrfs_root
*
root
,
u64
bytenr
,
u32
blocksize
);
...
...
fs/btrfs/reada.c
View file @
c0dcaa4d
...
...
@@ -721,7 +721,7 @@ static int reada_start_machine_dev(struct btrfs_fs_info *fs_info,
atomic_inc
(
&
dev
->
reada_in_flight
);
ret
=
reada_tree_block_flagged
(
fs_info
->
extent_root
,
logical
,
fs_info
->
tree_root
->
nodesize
,
mirror_num
,
&
eb
);
mirror_num
,
&
eb
);
if
(
ret
)
__readahead_hook
(
fs_info
->
extent_root
,
NULL
,
logical
,
ret
);
else
if
(
eb
)
...
...
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