public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured
@ 2009-12-14 13:55 David Howells
  2009-12-14 14:30 ` tytso
  2009-12-14 18:10 ` Linus Torvalds
  0 siblings, 2 replies; 3+ messages in thread
From: David Howells @ 2009-12-14 13:55 UTC (permalink / raw)
  To: torvalds, akpm, linux-ext4; +Cc: dhowells, linux-fsdevel, linux-kernel

Don't offer to build ext2/3 support into ext4 if ext4 itself is not configured
on.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 fs/ext4/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
index 9acf7e8..c48a6bc 100644
--- a/fs/ext4/Kconfig
+++ b/fs/ext4/Kconfig
@@ -28,7 +28,7 @@ config EXT4_FS
 
 config EXT4_USE_FOR_EXT23
 	bool "Use ext4 for ext2/ext3 file systems"
-	depends on EXT3_FS=n || EXT2_FS=n
+	depends on EXT4_FS && (EXT3_FS=n || EXT2_FS=n)
 	default y
 	help
 	  Allow the ext4 file system driver code to be used for ext2 or

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

* Re: [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured
  2009-12-14 13:55 [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured David Howells
@ 2009-12-14 14:30 ` tytso
  2009-12-14 18:10 ` Linus Torvalds
  1 sibling, 0 replies; 3+ messages in thread
From: tytso @ 2009-12-14 14:30 UTC (permalink / raw)
  To: David Howells; +Cc: torvalds, akpm, linux-ext4, linux-fsdevel, linux-kernel

On Mon, Dec 14, 2009 at 01:55:46PM +0000, David Howells wrote:
> Don't offer to build ext2/3 support into ext4 if ext4 itself is not configured
> on.
> 
> Signed-off-by: David Howells <dhowells@redhat.com>

Whoops, nice catch.  Added to the ext4 patch queue, I'll make sure
this gets pushed to Linus during the merge window.

     	  	    	  	     - Ted

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

* Re: [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured
  2009-12-14 13:55 [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured David Howells
  2009-12-14 14:30 ` tytso
@ 2009-12-14 18:10 ` Linus Torvalds
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2009-12-14 18:10 UTC (permalink / raw)
  To: David Howells; +Cc: akpm, linux-ext4, linux-fsdevel, linux-kernel



On Mon, 14 Dec 2009, David Howells wrote:
>  config EXT4_USE_FOR_EXT23
>  	bool "Use ext4 for ext2/ext3 file systems"
> -	depends on EXT3_FS=n || EXT2_FS=n
> +	depends on EXT4_FS && (EXT3_FS=n || EXT2_FS=n)

Side note: I think we should actively avoid complex config dependency 
expressions.

The above can be written with simpler expressions by just splitting it in 
two, and I think it makes it more readable:

	depends on EXT4_FS
	depends on EXT3_FS=n || EXT2_FS=n

since the two expressions are logically totally unrelated: one is just the 
obvious "this kconfig doesn't make sense without ext4" thing that was 
missing before, and the other is a totally unrelated "if you already have 
selected ext2 and ext3, then you clearly don't want ext4 to deal with 
them".

			Linus

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

end of thread, other threads:[~2009-12-14 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 13:55 [PATCH] Ext4: Don't ask about supporting ext2/3 in ext4 if ext4 is not configured David Howells
2009-12-14 14:30 ` tytso
2009-12-14 18:10 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox