aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorGravatar Josef Bacik <josef@toxicpanda.com> 2021-11-05 16:45:33 -0400
committerGravatar David Sterba <dsterba@suse.com> 2022-01-03 15:09:47 +0100
commite0b7661d44dab027febaf37f6f7766a3007af932 (patch)
tree205efe1475ca844ac886fc3b8aa7df196a1e2cd5 /fs/btrfs/backref.c
parentbtrfs: move comment in find_parent_nodes() (diff)
downloadlinux-e0b7661d44dab027febaf37f6f7766a3007af932.tar.gz
linux-e0b7661d44dab027febaf37f6f7766a3007af932.tar.bz2
linux-e0b7661d44dab027febaf37f6f7766a3007af932.zip
btrfs: remove SANITY_TESTS check form find_parent_nodes
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>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r--fs/btrfs/backref.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index 4d4046099e54..cebdb75ac6bb 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -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