backref.c (4fd786e6c3d67b1348e0ad4f450efe9fc9d7a306) | backref.c (e3d039656384288bbe952413d8d404b3035fe7d7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2011 STRATO. All rights reserved. 4 */ 5 6#include <linux/mm.h> 7#include <linux/rbtree.h> 8#include <trace/events/btrfs.h> --- 755 unchanged lines hidden (view full) --- 764 struct rb_node *n; 765 int count; 766 int ret = 0; 767 768 if (extent_op && extent_op->update_key) 769 btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key); 770 771 spin_lock(&head->lock); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2011 STRATO. All rights reserved. 4 */ 5 6#include <linux/mm.h> 7#include <linux/rbtree.h> 8#include <trace/events/btrfs.h> --- 755 unchanged lines hidden (view full) --- 764 struct rb_node *n; 765 int count; 766 int ret = 0; 767 768 if (extent_op && extent_op->update_key) 769 btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key); 770 771 spin_lock(&head->lock); |
772 for (n = rb_first(&head->ref_tree); n; n = rb_next(n)) { | 772 for (n = rb_first_cached(&head->ref_tree); n; n = rb_next(n)) { |
773 node = rb_entry(n, struct btrfs_delayed_ref_node, 774 ref_node); 775 if (node->seq > seq) 776 continue; 777 778 switch (node->action) { 779 case BTRFS_ADD_DELAYED_EXTENT: 780 case BTRFS_UPDATE_DELAYED_HEAD: --- 1470 unchanged lines hidden --- | 773 node = rb_entry(n, struct btrfs_delayed_ref_node, 774 ref_node); 775 if (node->seq > seq) 776 continue; 777 778 switch (node->action) { 779 case BTRFS_ADD_DELAYED_EXTENT: 780 case BTRFS_UPDATE_DELAYED_HEAD: --- 1470 unchanged lines hidden --- |