diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-19 16:07:01 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:51:02 -0500 |
commit | 06ea65a398a2501e94beee3a425d07e1846ff25a (patch) | |
tree | da8445a365ceecd4df89a9d6a3da79afaa320765 /fs/btrfs/ctree.h | |
parent | dd3cc16b8750251ea9b1a843ce7806e82b015d5e (diff) | |
download | op-kernel-dev-06ea65a398a2501e94beee3a425d07e1846ff25a.zip op-kernel-dev-06ea65a398a2501e94beee3a425d07e1846ff25a.tar.gz |
Btrfs: add a sanity test for btrfs_split_item
While looking at somebodys corruption I became completely convinced that
btrfs_split_item was broken, so I wrote this test to verify that it was working
as it was supposed to. Thankfully it appears to be working as intended, so just
add this test to make sure nobody breaks it in the future. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index fa117f7d..ee0b8aa 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1724,7 +1724,9 @@ struct btrfs_root { int ref_cows; int track_dirty; int in_radix; - +#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS + int dummy_root; +#endif u64 defrag_trans_start; struct btrfs_key defrag_progress; struct btrfs_key defrag_max; |