tree-log.c (ea68a3e9d14e9e0bf017d178fb4bd53b6deb1482) tree-log.c (fdf8d595f49c79f1c47e5a91c4c6582572c5eeee)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2008 Oracle. All rights reserved.
4 */
5
6#include <linux/sched.h>
7#include <linux/slab.h>
8#include <linux/blkdev.h>

--- 4085 unchanged lines hidden (view full) ---

4094 btrfs_item_key_to_cpu(path->nodes[0], &found_key,
4095 path->slots[0]);
4096
4097 if (found_key.objectid != key.objectid)
4098 break;
4099
4100 found_key.offset = 0;
4101 found_key.type = 0;
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2008 Oracle. All rights reserved.
4 */
5
6#include <linux/sched.h>
7#include <linux/slab.h>
8#include <linux/blkdev.h>

--- 4085 unchanged lines hidden (view full) ---

4094 btrfs_item_key_to_cpu(path->nodes[0], &found_key,
4095 path->slots[0]);
4096
4097 if (found_key.objectid != key.objectid)
4098 break;
4099
4100 found_key.offset = 0;
4101 found_key.type = 0;
4102 ret = btrfs_bin_search(path->nodes[0], &found_key, &start_slot);
4102 ret = btrfs_bin_search(path->nodes[0], 0, &found_key, &start_slot);
4103 if (ret < 0)
4104 break;
4105
4106 ret = btrfs_del_items(trans, log, path, start_slot,
4107 path->slots[0] - start_slot + 1);
4108 /*
4109 * If start slot isn't 0 then we don't need to re-search, we've
4110 * found the last guy with the objectid in this tree.

--- 3431 unchanged lines hidden ---
4103 if (ret < 0)
4104 break;
4105
4106 ret = btrfs_del_items(trans, log, path, start_slot,
4107 path->slots[0] - start_slot + 1);
4108 /*
4109 * If start slot isn't 0 then we don't need to re-search, we've
4110 * found the last guy with the objectid in this tree.

--- 3431 unchanged lines hidden ---