backref.c (c75e839414d3610e6487ae3145199c500d55f7f7) | backref.c (39dba8739c4e360d7d1b27119c728791e68b0448) |
---|---|
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> --- 540 unchanged lines hidden (view full) --- 549 root_key.offset = (u64)-1; 550 551 root = btrfs_get_fs_root(fs_info, &root_key, false); 552 if (IS_ERR(root)) { 553 ret = PTR_ERR(root); 554 goto out_free; 555 } 556 | 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> --- 540 unchanged lines hidden (view full) --- 549 root_key.offset = (u64)-1; 550 551 root = btrfs_get_fs_root(fs_info, &root_key, false); 552 if (IS_ERR(root)) { 553 ret = PTR_ERR(root); 554 goto out_free; 555 } 556 |
557 if (!path->search_commit_root && 558 test_bit(BTRFS_ROOT_DELETING, &root->state)) { 559 ret = -ENOENT; 560 goto out; 561 } 562 |
|
557 if (btrfs_is_testing(fs_info)) { 558 ret = -ENOENT; 559 goto out; 560 } 561 562 if (path->search_commit_root) 563 root_level = btrfs_header_level(root->commit_root); 564 else if (time_seq == SEQ_LAST) --- 1727 unchanged lines hidden --- | 563 if (btrfs_is_testing(fs_info)) { 564 ret = -ENOENT; 565 goto out; 566 } 567 568 if (path->search_commit_root) 569 root_level = btrfs_header_level(root->commit_root); 570 else if (time_seq == SEQ_LAST) --- 1727 unchanged lines hidden --- |