forked from luck/tmp_suning_uos_patched
Btrfs: Properly dirty buffers in the split corner cases
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
0999df54f8
commit
0ef8b2428a
|
@ -2052,6 +2052,7 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
|
|||
path->nodes[0] = right;
|
||||
path->slots[0] = 0;
|
||||
path->slots[1] += 1;
|
||||
btrfs_mark_buffer_dirty(right);
|
||||
return ret;
|
||||
}
|
||||
mid = slot;
|
||||
|
@ -2082,6 +2083,7 @@ static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root
|
|||
if (wret)
|
||||
ret = wret;
|
||||
}
|
||||
btrfs_mark_buffer_dirty(right);
|
||||
return ret;
|
||||
} else if (extend && slot == 0) {
|
||||
mid = 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user