Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Bricked
flo
Commits
eaee50e8
Commit
eaee50e8
authored
18 years ago
by
Chris Mason
Committed by
David Woodhouse
18 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Btrfs: merge leaves before split
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
9aca1d51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
fs/btrfs/TODO
fs/btrfs/TODO
+0
-2
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+9
-0
No files found.
fs/btrfs/TODO
View file @
eaee50e8
* cleanup, add more error checking, get rid of BUG_ONs
* endian fixes
* Make IO functions look more like the page cache
* Fix ENOSPC handling
* make blocksize a mkfs parameter instead of #define
* make a real mkfs and superblock
* Add shadowing and transactions
* Do checksumming
* Define FS objects in terms of different item types
* Add block mapping tree (simple dm layer)
...
...
This diff is collapsed.
Click to expand it.
fs/btrfs/ctree.c
View file @
eaee50e8
...
...
@@ -1043,6 +1043,15 @@ static int split_leaf(struct btrfs_root *root, struct btrfs_path *path,
int
ret
;
int
wret
;
wret
=
push_leaf_left
(
root
,
path
,
data_size
);
if
(
wret
<
0
)
return
wret
;
if
(
wret
)
{
wret
=
push_leaf_right
(
root
,
path
,
data_size
);
if
(
wret
<
0
)
return
wret
;
}
l_buf
=
path
->
nodes
[
0
];
l
=
&
l_buf
->
leaf
;
...
...
This diff is collapsed.
Click to expand it.
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