file-item.c (2a29edc6b60a5248ccab588e7ba7dad38cef0235) file-item.c (ad0397a7a97f55fd7f70998ec208c5d8b90310ff)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

545 key.type = BTRFS_EXTENT_CSUM_KEY;
546
547 path->leave_spinning = 1;
548 ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
549 if (ret > 0) {
550 if (path->slots[0] == 0)
551 goto out;
552 path->slots[0]--;
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

545 key.type = BTRFS_EXTENT_CSUM_KEY;
546
547 path->leave_spinning = 1;
548 ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
549 if (ret > 0) {
550 if (path->slots[0] == 0)
551 goto out;
552 path->slots[0]--;
553 } else if (ret < 0) {
554 goto out;
553 }
555 }
556
554 leaf = path->nodes[0];
555 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
556
557 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
558 key.type != BTRFS_EXTENT_CSUM_KEY) {
559 break;
560 }
561

--- 296 unchanged lines hidden ---
557 leaf = path->nodes[0];
558 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
559
560 if (key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
561 key.type != BTRFS_EXTENT_CSUM_KEY) {
562 break;
563 }
564

--- 296 unchanged lines hidden ---