btrfs: remove SANITY_TESTS check form find_parent_nodes
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:33 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:47 +0000 (15:09 +0100)
We define __TRANS_DUMMY always, so this extra ifdef stuff is not needed.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c

index 4d40460..cebdb75 100644 (file)
@@ -1212,12 +1212,8 @@ again:
                goto out;
        BUG_ON(ret == 0);
 
-#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
        if (trans && likely(trans->type != __TRANS_DUMMY) &&
            time_seq != BTRFS_SEQ_LAST) {
-#else
-       if (trans && time_seq != BTRFS_SEQ_LAST) {
-#endif
                /*
                 * We have a specific time_seq we care about and trans which
                 * means we have the path lock, we need to grab the ref head and