summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-22 12:03:23 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-22 12:03:23 +0000
commitd5e6bde258d1c0f7e4119df4f95f1d94d69affc4 (patch)
tree62b06f3f0a8592397e854603a4d717281ae4e09d /target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch
parente71ac4855b7b46ec3670bfa3a0bbcf68bcd8a2ec (diff)
add 2.6.32 patches to use ext4 for ext2/3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24082 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch')
-rw-r--r--target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch b/target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch
new file mode 100644
index 000000000..19b5626ee
--- /dev/null
+++ b/target/linux/generic/patches-2.6.32/041-ext4_do_not_override_ext23.patch
@@ -0,0 +1,46 @@
+From a214238d3bb03723f820b0a398928d8e1637c987 Mon Sep 17 00:00:00 2001
+From: Theodore Ts'o <tytso@mit.edu>
+Date: Wed, 9 Dec 2009 21:09:58 -0500
+Subject: [PATCH] ext4: Do not override ext2 or ext3 if built they are built as modules
+
+The CONFIG_EXT4_USE_FOR_EXT23 option must not try to take over the
+ext2 or ext3 file systems if the those file system drivers are
+configured to be built as mdoules.
+
+Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
+---
+ fs/ext4/Kconfig | 2 +-
+ fs/ext4/super.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+--- 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 || !EXT2_FS
++ depends on EXT3_FS=n || EXT2_FS=n
+ default y
+ help
+ Allow the ext4 file system driver code to be used for ext2 or
+--- a/fs/ext4/super.c
++++ b/fs/ext4/super.c
+@@ -3989,7 +3989,7 @@ static int ext4_get_sb(struct file_syste
+ return get_sb_bdev(fs_type, flags, dev_name, data, ext4_fill_super,mnt);
+ }
+
+-#if !defined(CONTIG_EXT2_FS) && defined(CONFIG_EXT4_USE_FOR_EXT23)
++#if !defined(CONTIG_EXT2_FS) && !defined(CONFIG_EXT2_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23)
+ static struct file_system_type ext2_fs_type = {
+ .owner = THIS_MODULE,
+ .name = "ext2",
+@@ -4015,7 +4015,7 @@ static inline void register_as_ext2(void
+ static inline void unregister_as_ext2(void) { }
+ #endif
+
+-#if !defined(CONTIG_EXT3_FS) && defined(CONFIG_EXT4_USE_FOR_EXT23)
++#if !defined(CONTIG_EXT3_FS) && !defined(CONFIG_EXT3_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23)
+ static struct file_system_type ext3_fs_type = {
+ .owner = THIS_MODULE,
+ .name = "ext3",