diff mbox series

[01/15] btrfs: move btrfs_caching_type to block-group.h

Message ID 84da2b1e0670313091a6ff604c105b09f3f18879.1663196541.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series btrfs: strip out btrfs_fs_info dependencies | expand

Commit Message

Josef Bacik Sept. 14, 2022, 11:04 p.m. UTC
This is a block group related definition, move it into block-group.h.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 fs/btrfs/block-group.h | 7 +++++++
 fs/btrfs/ctree.h       | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)

Comments

Anand Jain Sept. 15, 2022, 6:09 a.m. UTC | #1
On 15/09/2022 07:04, Josef Bacik wrote:
> This is a block group related definition, move it into block-group.h.
> 
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

Reviewed-by: Anand Jain <anand.jain@oracle.com>


> ---
>   fs/btrfs/block-group.h | 7 +++++++
>   fs/btrfs/ctree.h       | 7 -------
>   2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
> index e34cb80ffb25..558fa0a21fb4 100644
> --- a/fs/btrfs/block-group.h
> +++ b/fs/btrfs/block-group.h
> @@ -57,6 +57,13 @@ enum btrfs_block_group_flags {
>   	BLOCK_GROUP_FLAG_ZONED_DATA_RELOC,
>   };
>   
> +enum btrfs_caching_type {
> +	BTRFS_CACHE_NO,
> +	BTRFS_CACHE_STARTED,
> +	BTRFS_CACHE_FINISHED,
> +	BTRFS_CACHE_ERROR,
> +};
> +
>   struct btrfs_caching_control {
>   	struct list_head list;
>   	struct mutex mutex;
> diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
> index 8271b3dccf16..725c187d5c4b 100644
> --- a/fs/btrfs/ctree.h
> +++ b/fs/btrfs/ctree.h
> @@ -180,13 +180,6 @@ struct btrfs_free_cluster {
>   	struct list_head block_group_list;
>   };
>   
> -enum btrfs_caching_type {
> -	BTRFS_CACHE_NO,
> -	BTRFS_CACHE_STARTED,
> -	BTRFS_CACHE_FINISHED,
> -	BTRFS_CACHE_ERROR,
> -};
> -
>   /*
>    * Tree to record all locked full stripes of a RAID5/6 block group
>    */
Johannes Thumshirn Sept. 15, 2022, 2:34 p.m. UTC | #2
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
diff mbox series

Patch

diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index e34cb80ffb25..558fa0a21fb4 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -57,6 +57,13 @@  enum btrfs_block_group_flags {
 	BLOCK_GROUP_FLAG_ZONED_DATA_RELOC,
 };
 
+enum btrfs_caching_type {
+	BTRFS_CACHE_NO,
+	BTRFS_CACHE_STARTED,
+	BTRFS_CACHE_FINISHED,
+	BTRFS_CACHE_ERROR,
+};
+
 struct btrfs_caching_control {
 	struct list_head list;
 	struct mutex mutex;
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 8271b3dccf16..725c187d5c4b 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -180,13 +180,6 @@  struct btrfs_free_cluster {
 	struct list_head block_group_list;
 };
 
-enum btrfs_caching_type {
-	BTRFS_CACHE_NO,
-	BTRFS_CACHE_STARTED,
-	BTRFS_CACHE_FINISHED,
-	BTRFS_CACHE_ERROR,
-};
-
 /*
  * Tree to record all locked full stripes of a RAID5/6 block group
  */