All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Btrfs-progs: don't set INCOMPAT_EXTENDED_IREF flag when making a new fs
@ 2013-04-11 10:28 Miao Xie
  2013-04-11 14:28 ` Jan Schmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Miao Xie @ 2013-04-11 10:28 UTC (permalink / raw)
  To: Linux Btrfs; +Cc: mfasheh

There is no extended irefs in the new fs, and we can mount it on
the old kernel without extended iref function safely. So we needn't
set INCOMPAT_EXTENDED_IREF flag when making a new fs, and just set
it when we actually insert a extended iref.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Cc: Mark Fasheh <mfasheh@suse.de>
---
 mkfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/mkfs.c b/mkfs.c
index c8cb395..aca6e46 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1654,8 +1654,6 @@ raid_groups:
 
 	super = root->fs_info->super_copy;
 	flags = btrfs_super_incompat_flags(super);
-	flags |= BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF;
-
 	if (mixed)
 		flags |= BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS;
 
-- 
1.8.0.1

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

* Re: [PATCH] Btrfs-progs: don't set INCOMPAT_EXTENDED_IREF flag when making a new fs
  2013-04-11 10:28 [PATCH] Btrfs-progs: don't set INCOMPAT_EXTENDED_IREF flag when making a new fs Miao Xie
@ 2013-04-11 14:28 ` Jan Schmidt
  2013-04-12  1:19   ` Miao Xie
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Schmidt @ 2013-04-11 14:28 UTC (permalink / raw)
  To: miaox; +Cc: Linux Btrfs, mfasheh

On Thu, April 11, 2013 at 12:28 (+0200), Miao Xie wrote:
> There is no extended irefs in the new fs, and we can mount it on
> the old kernel without extended iref function safely. So we needn't
> set INCOMPAT_EXTENDED_IREF flag when making a new fs, and just set
> it when we actually insert a extended iref.
> 
> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
> Cc: Mark Fasheh <mfasheh@suse.de>
> ---
>  mkfs.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/mkfs.c b/mkfs.c
> index c8cb395..aca6e46 100644
> --- a/mkfs.c
> +++ b/mkfs.c
> @@ -1654,8 +1654,6 @@ raid_groups:
>  
>  	super = root->fs_info->super_copy;
>  	flags = btrfs_super_incompat_flags(super);
> -	flags |= BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF;
> -
>  	if (mixed)
>  		flags |= BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS;
>  
> 

This one should have a large

*** do not apply until kernel patches from "[PATCH 0/2] do not open the extend
*** inode reference at the beginning" have been merged.

tag. Otherwise, extended irefs are disabled entirely for all new file systems in
environments where they have been working so far.

-Jan

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

* Re: [PATCH] Btrfs-progs: don't set INCOMPAT_EXTENDED_IREF flag when making a new fs
  2013-04-11 14:28 ` Jan Schmidt
@ 2013-04-12  1:19   ` Miao Xie
  0 siblings, 0 replies; 3+ messages in thread
From: Miao Xie @ 2013-04-12  1:19 UTC (permalink / raw)
  To: Jan Schmidt; +Cc: Linux Btrfs, mfasheh

On Thu, 11 Apr 2013 16:28:11 +0200, Jan Schmidt wrote:
> On Thu, April 11, 2013 at 12:28 (+0200), Miao Xie wrote:
>> There is no extended irefs in the new fs, and we can mount it on
>> the old kernel without extended iref function safely. So we needn't
>> set INCOMPAT_EXTENDED_IREF flag when making a new fs, and just set
>> it when we actually insert a extended iref.
>>
>> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
>> Cc: Mark Fasheh <mfasheh@suse.de>
>> ---
>>  mkfs.c | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/mkfs.c b/mkfs.c
>> index c8cb395..aca6e46 100644
>> --- a/mkfs.c
>> +++ b/mkfs.c
>> @@ -1654,8 +1654,6 @@ raid_groups:
>>  
>>  	super = root->fs_info->super_copy;
>>  	flags = btrfs_super_incompat_flags(super);
>> -	flags |= BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF;
>> -
>>  	if (mixed)
>>  		flags |= BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS;
>>  
>>
> 
> This one should have a large
> 
> *** do not apply until kernel patches from "[PATCH 0/2] do not open the extend
> *** inode reference at the beginning" have been merged.
> 
> tag. Otherwise, extended irefs are disabled entirely for all new file systems in
> environments where they have been working so far.

Yes, thanks to point it out.

Miao

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

end of thread, other threads:[~2013-04-12  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 10:28 [PATCH] Btrfs-progs: don't set INCOMPAT_EXTENDED_IREF flag when making a new fs Miao Xie
2013-04-11 14:28 ` Jan Schmidt
2013-04-12  1:19   ` Miao Xie

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.