summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2015-04-06 22:17:20 +0200
committerChris Mason2015-04-10 23:07:04 +0200
commit4c6d1d85ad89fd8e32dc9204b7f944854399bda9 (patch)
treeec5dc4b06d46da31423f515b9d214d2fee98ad26 /fs/btrfs/ctree.h
parentBtrfs: don't steal from the global reserve if we don't have the space (diff)
downloadkernel-qcow2-linux-4c6d1d85ad89fd8e32dc9204b7f944854399bda9.tar.gz
kernel-qcow2-linux-4c6d1d85ad89fd8e32dc9204b7f944854399bda9.tar.xz
kernel-qcow2-linux-4c6d1d85ad89fd8e32dc9204b7f944854399bda9.zip
btrfs: move struct io_ctl into ctree.h and rename it
We'll need to put the io_ctl into the block_group cache struct, so name it struct btrfs_io_ctl and move it into ctree.h Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 6bf16d5134c5..e305ccd731fe 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1256,6 +1256,17 @@ struct btrfs_caching_control {
atomic_t count;
};
+struct btrfs_io_ctl {
+ void *cur, *orig;
+ struct page *page;
+ struct page **pages;
+ struct btrfs_root *root;
+ unsigned long size;
+ int index;
+ int num_pages;
+ unsigned check_crcs:1;
+};
+
struct btrfs_block_group_cache {
struct btrfs_key key;
struct btrfs_block_group_item item;