backref.c (a292241cccb7e20e8b997a9a44177e7c98141859) | backref.c (faa2dbf004e89e8f7ccd28fbe6f07c308417b8ae) |
---|---|
1/* 2 * Copyright (C) 2011 STRATO. 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, --- 886 unchanged lines hidden (view full) --- 895again: 896 head = NULL; 897 898 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); 899 if (ret < 0) 900 goto out; 901 BUG_ON(ret == 0); 902 | 1/* 2 * Copyright (C) 2011 STRATO. 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, --- 886 unchanged lines hidden (view full) --- 895again: 896 head = NULL; 897 898 ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); 899 if (ret < 0) 900 goto out; 901 BUG_ON(ret == 0); 902 |
903#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS 904 if (trans && likely(trans->type != __TRANS_DUMMY)) { 905#else |
|
903 if (trans) { | 906 if (trans) { |
907#endif |
|
904 /* 905 * look if there are updates for this ref queued and lock the 906 * head 907 */ 908 delayed_refs = &trans->transaction->delayed_refs; 909 spin_lock(&delayed_refs->lock); 910 head = btrfs_find_delayed_ref_head(trans, bytenr); 911 if (head) { --- 959 unchanged lines hidden --- | 908 /* 909 * look if there are updates for this ref queued and lock the 910 * head 911 */ 912 delayed_refs = &trans->transaction->delayed_refs; 913 spin_lock(&delayed_refs->lock); 914 head = btrfs_find_delayed_ref_head(trans, bytenr); 915 if (head) { --- 959 unchanged lines hidden --- |