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
7476dfda
Commit
7476dfda
authored
Jun 15, 2014
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: sink blocksize parameter to tree_block_processed
Signed-off-by:
David Sterba
<
dsterba@suse.cz
>
parent
a83fffb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fs/btrfs/relocation.c
fs/btrfs/relocation.c
+5
-4
No files found.
fs/btrfs/relocation.c
View file @
7476dfda
...
...
@@ -2855,9 +2855,10 @@ static void update_processed_blocks(struct reloc_control *rc,
}
}
static
int
tree_block_processed
(
u64
bytenr
,
u32
blocksize
,
struct
reloc_control
*
rc
)
static
int
tree_block_processed
(
u64
bytenr
,
struct
reloc_control
*
rc
)
{
u32
blocksize
=
rc
->
extent_root
->
nodesize
;
if
(
test_range_bit
(
&
rc
->
processed_blocks
,
bytenr
,
bytenr
+
blocksize
-
1
,
EXTENT_DIRTY
,
1
,
NULL
))
return
1
;
...
...
@@ -3352,7 +3353,7 @@ static int __add_tree_block(struct reloc_control *rc,
bool
skinny
=
btrfs_fs_incompat
(
rc
->
extent_root
->
fs_info
,
SKINNY_METADATA
);
if
(
tree_block_processed
(
bytenr
,
blocksize
,
rc
))
if
(
tree_block_processed
(
bytenr
,
rc
))
return
0
;
if
(
tree_search
(
blocks
,
bytenr
))
...
...
@@ -3610,7 +3611,7 @@ static int find_data_references(struct reloc_control *rc,
if
(
added
)
goto
next
;
if
(
!
tree_block_processed
(
leaf
->
start
,
leaf
->
len
,
rc
))
{
if
(
!
tree_block_processed
(
leaf
->
start
,
rc
))
{
block
=
kmalloc
(
sizeof
(
*
block
),
GFP_NOFS
);
if
(
!
block
)
{
err
=
-
ENOMEM
;
...
...
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