]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add tests for btrfs_get_extent
authorJosef Bacik <jbacik@fusionio.com>
Fri, 11 Oct 2013 18:44:09 +0000 (14:44 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:57:30 +0000 (21:57 -0500)
commit7f466c34aba2e8383644e53d70a880682acb850f
treea82118fce66fff847e3412eae4ef7c3c3dc5c616
parentc5f2dcbcdcd970ef64f87b65e6eddfbe1455b052
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>
fs/btrfs/Makefile
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/btrfs/super.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/inode-tests.c [new file with mode: 0644]