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
40689478
Commit
40689478
authored
Mar 17, 2007
by
Chris Mason
Committed by
David Woodhouse
Mar 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: minor comments
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
e089f05c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+5
-0
No files found.
fs/btrfs/ctree.c
View file @
40689478
...
@@ -294,6 +294,10 @@ static int balance_level(struct btrfs_trans_handle *trans, struct btrfs_root
...
@@ -294,6 +294,10 @@ static int balance_level(struct btrfs_trans_handle *trans, struct btrfs_root
parent_buf
=
path
->
nodes
[
level
+
1
];
parent_buf
=
path
->
nodes
[
level
+
1
];
pslot
=
path
->
slots
[
level
+
1
];
pslot
=
path
->
slots
[
level
+
1
];
/*
* deal with the case where there is only one pointer in the root
* by promoting the node below to a root
*/
if
(
!
parent_buf
)
{
if
(
!
parent_buf
)
{
struct
btrfs_buffer
*
child
;
struct
btrfs_buffer
*
child
;
u64
blocknr
=
mid_buf
->
blocknr
;
u64
blocknr
=
mid_buf
->
blocknr
;
...
@@ -1043,6 +1047,7 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
...
@@ -1043,6 +1047,7 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
int
ret
;
int
ret
;
int
wret
;
int
wret
;
/* first try to make some room by pushing left and right */
wret
=
push_leaf_left
(
trans
,
root
,
path
,
data_size
);
wret
=
push_leaf_left
(
trans
,
root
,
path
,
data_size
);
if
(
wret
<
0
)
if
(
wret
<
0
)
return
wret
;
return
wret
;
...
...
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