ctree.h (5f56406aabdf5444d040c5955effc665b1d0dbaf) | ctree.h (d1310b2e0cd98eb1348553e69b73827b436dca7b) |
---|---|
1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 13 unchanged lines hidden (view full) --- 22#include <linux/version.h> 23#include <linux/mm.h> 24#include <linux/highmem.h> 25#include <linux/fs.h> 26#include <linux/workqueue.h> 27#include <linux/completion.h> 28#include <asm/kmap_types.h> 29#include "bit-radix.h" | 1/* 2 * Copyright (C) 2007 Oracle. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 13 unchanged lines hidden (view full) --- 22#include <linux/version.h> 23#include <linux/mm.h> 24#include <linux/highmem.h> 25#include <linux/fs.h> 26#include <linux/workqueue.h> 27#include <linux/completion.h> 28#include <asm/kmap_types.h> 29#include "bit-radix.h" |
30#include "extent_io.h" |
|
30#include "extent_map.h" 31 32struct btrfs_trans_handle; 33struct btrfs_transaction; 34extern struct kmem_cache *btrfs_trans_handle_cachep; 35extern struct kmem_cache *btrfs_transaction_cachep; 36extern struct kmem_cache *btrfs_bit_radix_cachep; 37extern struct kmem_cache *btrfs_path_cachep; --- 271 unchanged lines hidden (view full) --- 309 u64 pinned; 310}; 311struct btrfs_fs_info { 312 u8 fsid[BTRFS_FSID_SIZE]; 313 struct btrfs_root *extent_root; 314 struct btrfs_root *tree_root; 315 struct radix_tree_root fs_roots_radix; 316 | 31#include "extent_map.h" 32 33struct btrfs_trans_handle; 34struct btrfs_transaction; 35extern struct kmem_cache *btrfs_trans_handle_cachep; 36extern struct kmem_cache *btrfs_transaction_cachep; 37extern struct kmem_cache *btrfs_bit_radix_cachep; 38extern struct kmem_cache *btrfs_path_cachep; --- 271 unchanged lines hidden (view full) --- 310 u64 pinned; 311}; 312struct btrfs_fs_info { 313 u8 fsid[BTRFS_FSID_SIZE]; 314 struct btrfs_root *extent_root; 315 struct btrfs_root *tree_root; 316 struct radix_tree_root fs_roots_radix; 317 |
317 struct extent_map_tree free_space_cache; 318 struct extent_map_tree block_group_cache; 319 struct extent_map_tree pinned_extents; 320 struct extent_map_tree pending_del; 321 struct extent_map_tree extent_ins; | 318 struct extent_io_tree free_space_cache; 319 struct extent_io_tree block_group_cache; 320 struct extent_io_tree pinned_extents; 321 struct extent_io_tree pending_del; 322 struct extent_io_tree extent_ins; |
322 323 u64 generation; 324 u64 last_trans_committed; 325 unsigned long mount_opt; 326 u64 max_extent; 327 u64 alloc_start; 328 struct btrfs_transaction *running_transaction; 329 struct btrfs_super_block super_copy; --- 621 unchanged lines hidden (view full) --- 951} 952 953/* extent-tree.c */ 954u32 btrfs_count_snapshots_in_path(struct btrfs_root *root, 955 struct btrfs_path *count_path, 956 u64 first_extent); 957int btrfs_extent_post_op(struct btrfs_trans_handle *trans, 958 struct btrfs_root *root); | 323 324 u64 generation; 325 u64 last_trans_committed; 326 unsigned long mount_opt; 327 u64 max_extent; 328 u64 alloc_start; 329 struct btrfs_transaction *running_transaction; 330 struct btrfs_super_block super_copy; --- 621 unchanged lines hidden (view full) --- 952} 953 954/* extent-tree.c */ 955u32 btrfs_count_snapshots_in_path(struct btrfs_root *root, 956 struct btrfs_path *count_path, 957 u64 first_extent); 958int btrfs_extent_post_op(struct btrfs_trans_handle *trans, 959 struct btrfs_root *root); |
959int btrfs_copy_pinned(struct btrfs_root *root, struct extent_map_tree *copy); | 960int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy); |
960struct btrfs_block_group_cache *btrfs_lookup_block_group(struct 961 btrfs_fs_info *info, 962 u64 bytenr); 963struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, 964 struct btrfs_block_group_cache 965 *hint, u64 search_start, 966 int data, int owner); 967int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, --- 28 unchanged lines hidden (view full) --- 996int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, 997 struct extent_buffer *buf); 998int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root 999 *root, u64 bytenr, u64 num_bytes, 1000 u64 root_objectid, u64 ref_generation, 1001 u64 owner_objectid, u64 owner_offset, int pin); 1002int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, 1003 struct btrfs_root *root, | 961struct btrfs_block_group_cache *btrfs_lookup_block_group(struct 962 btrfs_fs_info *info, 963 u64 bytenr); 964struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, 965 struct btrfs_block_group_cache 966 *hint, u64 search_start, 967 int data, int owner); 968int btrfs_inc_root_ref(struct btrfs_trans_handle *trans, --- 28 unchanged lines hidden (view full) --- 997int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, 998 struct extent_buffer *buf); 999int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root 1000 *root, u64 bytenr, u64 num_bytes, 1001 u64 root_objectid, u64 ref_generation, 1002 u64 owner_objectid, u64 owner_offset, int pin); 1003int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, 1004 struct btrfs_root *root, |
1004 struct extent_map_tree *unpin); | 1005 struct extent_io_tree *unpin); |
1005int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, 1006 struct btrfs_root *root, 1007 u64 bytenr, u64 num_bytes, 1008 u64 root_objectid, u64 ref_generation, 1009 u64 owner, u64 owner_offset); 1010int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, 1011 struct btrfs_root *root); 1012int btrfs_free_block_groups(struct btrfs_fs_info *info); --- 184 unchanged lines hidden --- | 1006int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, 1007 struct btrfs_root *root, 1008 u64 bytenr, u64 num_bytes, 1009 u64 root_objectid, u64 ref_generation, 1010 u64 owner, u64 owner_offset); 1011int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans, 1012 struct btrfs_root *root); 1013int btrfs_free_block_groups(struct btrfs_fs_info *info); --- 184 unchanged lines hidden --- |