summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik2013-10-11 20:44:09 +0200
committerChris Mason2013-11-12 03:57:30 +0100
commitaaedb55bc08f384b7f57dbb3222a511baed4decf (patch)
treea82118fce66fff847e3412eae4ef7c3c3dc5c616 /fs/btrfs/ctree.h
parentBtrfs: add tests for find_lock_delalloc_range (diff)
downloadkernel-qcow2-linux-aaedb55bc08f384b7f57dbb3222a511baed4decf.tar.gz
kernel-qcow2-linux-aaedb55bc08f384b7f57dbb3222a511baed4decf.tar.xz
kernel-qcow2-linux-aaedb55bc08f384b7f57dbb3222a511baed4decf.zip
Btrfs: add tests for btrfs_get_extent
I'm going to be removing hole extents in the near future so I wanted to make a sanity test for btrfs_get_extent to make sure I don't break anything in the meantime. This patch just puts btrfs_get_extent through its paces by giving it a completely unreasonable mapping to look at and make sure it is giving us back maps that make sense. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 2f398062b942..9f5e1cfb0209 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -4034,5 +4034,9 @@ static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info)
return signal_pending(current);
}
+/* Sanity test specific functions */
+#ifdef CONFIG_BTRFS_FS_RUN_SANITY_TESTS
+void btrfs_test_destroy_inode(struct inode *inode);
+#endif
#endif