| 1 | From 51b7e3c9fbe7d22d4e355101e9a73b44fc5c9feb Mon Sep 17 00:00:00 2001 |
| 2 | From: Theodore Ts'o <tytso@mit.edu> |
| 3 | Date: Mon, 21 Dec 2009 10:56:09 -0500 |
| 4 | Subject: [PATCH] ext4: add module aliases for ext2 and ext3 |
| 5 | |
| 6 | Add module aliases for ext2 and ext3 when CONFIG_EXT4_USE_FOR_EXT23 is |
| 7 | set. This makes the existing user-space stuff like mkinitrd working |
| 8 | as is. |
| 9 | |
| 10 | Signed-off-by: Takashi Iwai <tiwai@suse.de> |
| 11 | Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> |
| 12 | --- |
| 13 | fs/ext4/super.c | 2 ++ |
| 14 | 1 files changed, 2 insertions(+), 0 deletions(-) |
| 15 | |
| 16 | --- a/fs/ext4/super.c |
| 17 | +++ b/fs/ext4/super.c |
| 18 | @@ -4015,6 +4015,7 @@ static inline void unregister_as_ext2(vo |
| 19 | { |
| 20 | unregister_filesystem(&ext2_fs_type); |
| 21 | } |
| 22 | +MODULE_ALIAS("ext2"); |
| 23 | #else |
| 24 | static inline void register_as_ext2(void) { } |
| 25 | static inline void unregister_as_ext2(void) { } |
| 26 | @@ -4041,6 +4042,7 @@ static inline void unregister_as_ext3(vo |
| 27 | { |
| 28 | unregister_filesystem(&ext3_fs_type); |
| 29 | } |
| 30 | +MODULE_ALIAS("ext3"); |
| 31 | #else |
| 32 | static inline void register_as_ext3(void) { } |
| 33 | static inline void unregister_as_ext3(void) { } |
| 34 | |