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
6caab489
Commit
6caab489
authored
Dec 13, 2007
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix btrfs_inc_ref to add backref hints
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
7a720536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+4
-2
No files found.
fs/btrfs/extent-tree.c
View file @
6caab489
...
@@ -702,7 +702,7 @@ int btrfs_inc_root_ref(struct btrfs_trans_handle *trans,
...
@@ -702,7 +702,7 @@ int btrfs_inc_root_ref(struct btrfs_trans_handle *trans,
}
}
return
btrfs_inc_extent_ref
(
trans
,
root
,
root
->
node
->
start
,
return
btrfs_inc_extent_ref
(
trans
,
root
,
root
->
node
->
start
,
root
->
node
->
len
,
owner_objectid
,
root
->
node
->
len
,
owner_objectid
,
generation
,
0
,
0
);
generation
,
key_objectid
,
level
);
}
}
int
btrfs_inc_ref
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_root
*
root
,
int
btrfs_inc_ref
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_root
*
root
,
...
@@ -746,10 +746,12 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
...
@@ -746,10 +746,12 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
}
}
}
else
{
}
else
{
bytenr
=
btrfs_node_blockptr
(
buf
,
i
);
bytenr
=
btrfs_node_blockptr
(
buf
,
i
);
btrfs_node_key_to_cpu
(
buf
,
&
key
,
i
);
ret
=
btrfs_inc_extent_ref
(
trans
,
root
,
bytenr
,
ret
=
btrfs_inc_extent_ref
(
trans
,
root
,
bytenr
,
btrfs_level_size
(
root
,
level
-
1
),
btrfs_level_size
(
root
,
level
-
1
),
root
->
root_key
.
objectid
,
root
->
root_key
.
objectid
,
trans
->
transid
,
0
,
0
);
trans
->
transid
,
key
.
objectid
,
level
-
1
);
if
(
ret
)
{
if
(
ret
)
{
faili
=
i
;
faili
=
i
;
goto
fail
;
goto
fail
;
...
...
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