All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs-progs: add incompat flag for space cache inode
@ 2010-10-27 18:29 Josef Bacik
  2010-10-28 18:16 ` Josef Bacik
  0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2010-10-27 18:29 UTC (permalink / raw)
  To: linux-btrfs

This patch adds the incompat flag for the space cache inode stuff.  Eventually
we'll want to turn this feature on at mkfs time, but for now lets let it settle
a bit first.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
---
 ctree.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ctree.h b/ctree.h
index b79e238..4d0e1e2 100644
--- a/ctree.h
+++ b/ctree.h
@@ -350,13 +350,15 @@ struct btrfs_super_block {
  * ones specified below then we will fail to mount
  */
 #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF	(1ULL << 0)
-#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL	(2ULL << 0)
+#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL	(1ULL << 1)
+#define BTRFS_FEATURE_INCOMPAT_SPACE_CACHE	(1ULL << 2)
 
 #define BTRFS_FEATURE_COMPAT_SUPP		0ULL
 #define BTRFS_FEATURE_COMPAT_RO_SUPP		0ULL
-#define BTRFS_FEATURE_INCOMPAT_SUPP		\
-	(BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF |	\
-	 BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL)
+#define BTRFS_FEATURE_INCOMPAT_SUPP			\
+	(BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF |		\
+	 BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL |	\
+	 BTRFS_FEATURE_INCOMPAT_SPACE_CACHE)
 
 /*
  * A leaf is full of items. offset and size tell us where to find
-- 
1.6.6.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Btrfs-progs: add incompat flag for space cache inode
  2010-10-27 18:29 [PATCH] Btrfs-progs: add incompat flag for space cache inode Josef Bacik
@ 2010-10-28 18:16 ` Josef Bacik
  0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2010-10-28 18:16 UTC (permalink / raw)
  To: Josef Bacik; +Cc: linux-btrfs

On Wed, Oct 27, 2010 at 02:29:39PM -0400, Josef Bacik wrote:
> This patch adds the incompat flag for the space cache inode stuff.  Eventually
> we'll want to turn this feature on at mkfs time, but for now lets let it settle
> a bit first.  Thanks,
> 
> Signed-off-by: Josef Bacik <josef@redhat.com>
> ---
>  ctree.h |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/ctree.h b/ctree.h
> index b79e238..4d0e1e2 100644
> --- a/ctree.h
> +++ b/ctree.h
> @@ -350,13 +350,15 @@ struct btrfs_super_block {
>   * ones specified below then we will fail to mount
>   */
>  #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF	(1ULL << 0)
> -#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL	(2ULL << 0)
> +#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL	(1ULL << 1)
> +#define BTRFS_FEATURE_INCOMPAT_SPACE_CACHE	(1ULL << 2)
>  
>  #define BTRFS_FEATURE_COMPAT_SUPP		0ULL
>  #define BTRFS_FEATURE_COMPAT_RO_SUPP		0ULL
> -#define BTRFS_FEATURE_INCOMPAT_SUPP		\
> -	(BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF |	\
> -	 BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL)
> +#define BTRFS_FEATURE_INCOMPAT_SUPP			\
> +	(BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF |		\
> +	 BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL |	\
> +	 BTRFS_FEATURE_INCOMPAT_SPACE_CACHE)
>  
>  /*
>   * A leaf is full of items. offset and size tell us where to find

NACK, Chris suggested a way to do the space caching without an incompat flag so
I'm going to do it that way.  I'll send a new mixed block group patch shortly.
Thanks,

Josef

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-28 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-27 18:29 [PATCH] Btrfs-progs: add incompat flag for space cache inode Josef Bacik
2010-10-28 18:16 ` Josef Bacik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.