summaryrefslogtreecommitdiff
path: root/fs/btrfs/block-group.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-08-21 19:57:04 +0200
committerDavid Sterba <dsterba@suse.com>2019-09-09 14:59:15 +0200
commit67b61aefcef3842a360e6c603860a785fd971c7a (patch)
tree8473d83a10d61a4bc2da39f42a4dd005ed3276a9 /fs/btrfs/block-group.h
parent18d0f5c6e16ce762f92ab7879c30ff2e37cd9cef (diff)
btrfs: move struct io_ctl to free-space-cache.h
The io_ctl structure is used for free space management, and used only by the v1 space cache code, but unfortunatlly the full definition is required by block-group.h so it can't be moved to free-space-cache.c without additional changes. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r--fs/btrfs/block-group.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index 5c6e2fb23e35..c391800388dd 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -3,6 +3,8 @@
#ifndef BTRFS_BLOCK_GROUP_H
#define BTRFS_BLOCK_GROUP_H
+#include "free-space-cache.h"
+
enum btrfs_disk_cache_state {
BTRFS_DC_WRITTEN,
BTRFS_DC_ERROR,