diff options
author | Josef Bacik <jbacik@fb.com> | 2014-05-07 17:06:09 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 17:20:49 -0700 |
commit | faa2dbf004e89e8f7ccd28fbe6f07c308417b8ae (patch) | |
tree | b700876fe08b8830d4e8686c039f4241cc9cb5e2 /fs/btrfs/extent_io.h | |
parent | fcebe4562dec83b3f8d3088d77584727b09130b2 (diff) | |
download | op-kernel-dev-faa2dbf004e89e8f7ccd28fbe6f07c308417b8ae.zip op-kernel-dev-faa2dbf004e89e8f7ccd28fbe6f07c308417b8ae.tar.gz |
Btrfs: add sanity tests for new qgroup accounting code
This exercises the various parts of the new qgroup accounting code. We do some
basic stuff and do some things with the shared refs to make sure all that code
works. I had to add a bunch of infrastructure because I needed to be able to
insert items into a fake tree without having to do all the hard work myself,
hopefully this will be usefull in the future. Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index c488b45..8b63f2d 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -350,5 +350,7 @@ noinline u64 find_lock_delalloc_range(struct inode *inode, struct extent_io_tree *tree, struct page *locked_page, u64 *start, u64 *end, u64 max_bytes); +struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, + u64 start, unsigned long len); #endif #endif |