提交 e0b7661d 编写于 作者: J Josef Bacik 提交者: David Sterba

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: NJosef Bacik <josef@toxicpanda.com>
Reviewed-by: NDavid Sterba <dsterba@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 9665ebd5
...@@ -1212,12 +1212,8 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans, ...@@ -1212,12 +1212,8 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
goto out; goto out;
BUG_ON(ret == 0); BUG_ON(ret == 0);
#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
if (trans && likely(trans->type != __TRANS_DUMMY) && if (trans && likely(trans->type != __TRANS_DUMMY) &&
time_seq != BTRFS_SEQ_LAST) { 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 * 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 * means we have the path lock, we need to grab the ref head and
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册