mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
Btrfs: minor comments
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
e089f05c18
commit
4068947886
@ -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
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user