Skip to content

Commit

Permalink
Btrfs: Properly dirty buffers in the split corner cases
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 0999df5 commit 0ef8b24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0ef8b24

Please sign in to comment.