summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-2.6.32/042-ext4_add_ext23_module_aliases.patch
blob: 2bf863b2d45079839ce0f53b11206e12d927a0a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 51b7e3c9fbe7d22d4e355101e9a73b44fc5c9feb Mon Sep 17 00:00:00 2001
From: Theodore Ts'o <tytso@mit.edu>
Date: Mon, 21 Dec 2009 10:56:09 -0500
Subject: [PATCH] ext4: add module aliases for ext2 and ext3

Add module aliases for ext2 and ext3 when CONFIG_EXT4_USE_FOR_EXT23 is
set.  This makes the existing user-space stuff like mkinitrd working
as is.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
 fs/ext4/super.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4015,6 +4015,7 @@ static inline void unregister_as_ext2(vo
 {
 	unregister_filesystem(&ext2_fs_type);
 }
+MODULE_ALIAS("ext2");
 #else
 static inline void register_as_ext2(void) { }
 static inline void unregister_as_ext2(void) { }
@@ -4041,6 +4042,7 @@ static inline void unregister_as_ext3(vo
 {
 	unregister_filesystem(&ext3_fs_type);
 }
+MODULE_ALIAS("ext3");
 #else
 static inline void register_as_ext3(void) { }
 static inline void unregister_as_ext3(void) { }