diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 8f67a14fa9743a6a6abbaa6458e892a437a158e3..f6ba165d3f811a76c6fdf900fac4ad37228361b0 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -4311,7 +4311,11 @@ static noinline int split_leaf(struct btrfs_trans_handle *trans, if (path->slots[1] == 0) fixup_low_keys(fs_info, path, &disk_key, 1); } - btrfs_mark_buffer_dirty(right); + /* + * We create a new leaf 'right' for the required ins_len and + * we'll do btrfs_mark_buffer_dirty() on this leaf after copying + * the content of ins_len to 'right'. + */ return ret; }