X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=free-space-cache.h;h=707fb6d39886026017a1a6d2402e4a5f70842a15;hb=c12d0431a6293a86facea90af7bc9c3654d127c5;hp=f2e71a5851fd4210fc98a83917507b1197cb00b4;hpb=07ce7005fc81289eb4c7dde7d601be08c977b92c;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/free-space-cache.h b/free-space-cache.h index f2e71a5..707fb6d 100644 --- a/free-space-cache.h +++ b/free-space-cache.h @@ -19,6 +19,10 @@ #ifndef __BTRFS_FREE_SPACE_CACHE_H__ #define __BTRFS_FREE_SPACE_CACHE_H__ +#include "kerncompat.h" +#include "ctree.h" +#include "rbtree.h" + struct btrfs_free_space { struct rb_node offset_index; u64 offset; @@ -53,4 +57,8 @@ int btrfs_init_free_space_ctl(struct btrfs_block_group_cache *block_group, int sectorsize); void unlink_free_space(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info); +int btrfs_add_free_space(struct btrfs_free_space_ctl *ctl, u64 offset, + u64 bytes); +int btrfs_clear_free_space_cache(struct btrfs_fs_info *fs_info, + struct btrfs_block_group_cache *bg); #endif