Skip to content

Commit 32cee14

Browse files
committed
btrfs-progs: kernel-shared: remove commented out code from btrfs_cow_block()
The code has been disabled since 2008 when syncing progs and kernel code. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 689c78a commit 32cee14

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

kernel-shared/ctree.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,7 @@ int btrfs_cow_block(struct btrfs_trans_handle *trans,
670670
{
671671
u64 search_start;
672672
int ret;
673-
/*
674-
if (trans->transaction != root->fs_info->running_transaction) {
675-
printk(KERN_CRIT "trans %llu running %llu\n", trans->transid,
676-
root->fs_info->running_transaction->transid);
677-
WARN_ON(1);
678-
}
679-
*/
673+
680674
if (trans->transid != root->fs_info->generation) {
681675
printk(KERN_CRIT "trans %llu running %llu\n",
682676
(unsigned long long)trans->transid,

0 commit comments

Comments
 (0)