Skip to content

Commit f0e2dfa

Browse files
Eric Sandeentytso
authored andcommitted
ext4: drop ext4dev compat
Kconfig & super.c promised it'd be gone by 2.6.31, so it's about time to drop it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent 1f94533 commit f0e2dfa

2 files changed

Lines changed: 0 additions & 45 deletions

File tree

‎fs/ext4/Kconfig‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ config EXT4_FS
2626

2727
If unsure, say N.
2828

29-
config EXT4DEV_COMPAT
30-
bool "Enable ext4dev compatibility"
31-
depends on EXT4_FS
32-
help
33-
Starting with 2.6.28, the name of the ext4 filesystem was
34-
renamed from ext4dev to ext4. Unfortunately there are some
35-
legacy userspace programs (such as klibc's fstype) have
36-
"ext4dev" hardcoded.
37-
38-
To enable backwards compatibility so that systems that are
39-
still expecting to mount ext4 filesystems using ext4dev,
40-
choose Y here. This feature will go away by 2.6.31, so
41-
please arrange to get your userspace programs fixed!
42-
4329
config EXT4_FS_XATTR
4430
bool "Ext4 extended attributes"
4531
depends on EXT4_FS

‎fs/ext4/super.c‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,27 +3966,6 @@ static struct file_system_type ext4_fs_type = {
39663966
.fs_flags = FS_REQUIRES_DEV,
39673967
};
39683968

3969-
#ifdef CONFIG_EXT4DEV_COMPAT
3970-
static int ext4dev_get_sb(struct file_system_type *fs_type, int flags,
3971-
const char *dev_name, void *data,struct vfsmount *mnt)
3972-
{
3973-
printk(KERN_WARNING "EXT4-fs (%s): Update your userspace programs "
3974-
"to mount using ext4\n", dev_name);
3975-
printk(KERN_WARNING "EXT4-fs (%s): ext4dev backwards compatibility "
3976-
"will go away by 2.6.31\n", dev_name);
3977-
return get_sb_bdev(fs_type, flags, dev_name, data, ext4_fill_super,mnt);
3978-
}
3979-
3980-
static struct file_system_type ext4dev_fs_type = {
3981-
.owner = THIS_MODULE,
3982-
.name = "ext4dev",
3983-
.get_sb = ext4dev_get_sb,
3984-
.kill_sb = kill_block_super,
3985-
.fs_flags = FS_REQUIRES_DEV,
3986-
};
3987-
MODULE_ALIAS("ext4dev");
3988-
#endif
3989-
39903969
static int __init init_ext4_fs(void)
39913970
{
39923971
int err;
@@ -4011,13 +3990,6 @@ static int __init init_ext4_fs(void)
40113990
err = register_filesystem(&ext4_fs_type);
40123991
if (err)
40133992
goto out;
4014-
#ifdef CONFIG_EXT4DEV_COMPAT
4015-
err = register_filesystem(&ext4dev_fs_type);
4016-
if (err) {
4017-
unregister_filesystem(&ext4_fs_type);
4018-
goto out;
4019-
}
4020-
#endif
40213993
return 0;
40223994
out:
40233995
destroy_inodecache();
@@ -4036,9 +4008,6 @@ static int __init init_ext4_fs(void)
40364008
static void __exit exit_ext4_fs(void)
40374009
{
40384010
unregister_filesystem(&ext4_fs_type);
4039-
#ifdef CONFIG_EXT4DEV_COMPAT
4040-
unregister_filesystem(&ext4dev_fs_type);
4041-
#endif
40424011
destroy_inodecache();
40434012
exit_ext4_xattr();
40444013
exit_ext4_mballoc();

0 commit comments

Comments
 (0)