aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-09-03 15:28:30 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-03 15:28:30 -0400
commite31fb9e00543e5d3c5b686747d3c862bc09b59f3 (patch)
tree4300b111471a858b542d55d47d587fb8ef52513a /fs/ext4/super.c
parent824b005c86f91fe02eb2743a4526361f11786f70 (diff)
parent9181f8bf5abf4b9d59b12e878895375b84fe32ba (diff)
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull ext3 removal, quota & udf fixes from Jan Kara: "The biggest change in the pull is the removal of ext3 filesystem driver (~28k lines removed). Ext4 driver is a full featured replacement these days and both RH and SUSE use it for several years without issues. Also there are some workarounds in VM & block layer mainly for ext3 which we could eventually get rid of. Other larger change is addition of proper error handling for dquot_initialize(). The rest is small fixes and cleanups" [ I wasn't convinced about the ext3 removal and worried about things falling through the cracks for legacy users, but ext4 maintainers piped up and were all unanimously in favor of removal, and maintaining all legacy ext3 support inside ext4. - Linus ] * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: udf: Don't modify filesystem for read-only mounts quota: remove an unneeded condition ext4: memory leak on error in ext4_symlink() mm/Kconfig: NEED_BOUNCE_POOL: clean-up condition ext4: Improve ext4 Kconfig test block: Remove forced page bouncing under IO fs: Remove ext3 filesystem driver doc: Update doc about journalling layer jfs: Handle error from dquot_initialize() reiserfs: Handle error from dquot_initialize() ocfs2: Handle error from dquot_initialize() ext4: Handle error from dquot_initialize() ext2: Handle error from dquot_initalize() quota: Propagate error from ->acquire_dquot()
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 58987b5c514b..06b4b14e8aa0 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -84,7 +84,7 @@ static void ext4_unregister_li_request(struct super_block *sb);
84static void ext4_clear_request_list(void); 84static void ext4_clear_request_list(void);
85static int ext4_reserve_clusters(struct ext4_sb_info *, ext4_fsblk_t); 85static int ext4_reserve_clusters(struct ext4_sb_info *, ext4_fsblk_t);
86 86
87#if !defined(CONFIG_EXT2_FS) && !defined(CONFIG_EXT2_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23) 87#if !defined(CONFIG_EXT2_FS) && !defined(CONFIG_EXT2_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT2)
88static struct file_system_type ext2_fs_type = { 88static struct file_system_type ext2_fs_type = {
89 .owner = THIS_MODULE, 89 .owner = THIS_MODULE,
90 .name = "ext2", 90 .name = "ext2",
@@ -100,7 +100,6 @@ MODULE_ALIAS("ext2");
100#endif 100#endif
101 101
102 102
103#if !defined(CONFIG_EXT3_FS) && !defined(CONFIG_EXT3_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23)
104static struct file_system_type ext3_fs_type = { 103static struct file_system_type ext3_fs_type = {
105 .owner = THIS_MODULE, 104 .owner = THIS_MODULE,
106 .name = "ext3", 105 .name = "ext3",
@@ -111,9 +110,6 @@ static struct file_system_type ext3_fs_type = {
111MODULE_ALIAS_FS("ext3"); 110MODULE_ALIAS_FS("ext3");
112MODULE_ALIAS("ext3"); 111MODULE_ALIAS("ext3");
113#define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type) 112#define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
114#else
115#define IS_EXT3_SB(sb) (0)
116#endif
117 113
118static int ext4_verify_csum_type(struct super_block *sb, 114static int ext4_verify_csum_type(struct super_block *sb,
119 struct ext4_super_block *es) 115 struct ext4_super_block *es)
@@ -5500,7 +5496,7 @@ static struct dentry *ext4_mount(struct file_system_type *fs_type, int flags,
5500 return mount_bdev(fs_type, flags, dev_name, data, ext4_fill_super); 5496 return mount_bdev(fs_type, flags, dev_name, data, ext4_fill_super);
5501} 5497}
5502 5498
5503#if !defined(CONFIG_EXT2_FS) && !defined(CONFIG_EXT2_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23) 5499#if !defined(CONFIG_EXT2_FS) && !defined(CONFIG_EXT2_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT2)
5504static inline void register_as_ext2(void) 5500static inline void register_as_ext2(void)
5505{ 5501{
5506 int err = register_filesystem(&ext2_fs_type); 5502 int err = register_filesystem(&ext2_fs_type);
@@ -5530,7 +5526,6 @@ static inline void unregister_as_ext2(void) { }
5530static inline int ext2_feature_set_ok(struct super_block *sb) { return 0; } 5526static inline int ext2_feature_set_ok(struct super_block *sb) { return 0; }
5531#endif 5527#endif
5532 5528
5533#if !defined(CONFIG_EXT3_FS) && !defined(CONFIG_EXT3_FS_MODULE) && defined(CONFIG_EXT4_USE_FOR_EXT23)
5534static inline void register_as_ext3(void) 5529static inline void register_as_ext3(void)
5535{ 5530{
5536 int err = register_filesystem(&ext3_fs_type); 5531 int err = register_filesystem(&ext3_fs_type);
@@ -5556,11 +5551,6 @@ static inline int ext3_feature_set_ok(struct super_block *sb)
5556 return 0; 5551 return 0;
5557 return 1; 5552 return 1;
5558} 5553}
5559#else
5560static inline void register_as_ext3(void) { }
5561static inline void unregister_as_ext3(void) { }
5562static inline int ext3_feature_set_ok(struct super_block *sb) { return 0; }
5563#endif
5564 5554
5565static struct file_system_type ext4_fs_type = { 5555static struct file_system_type ext4_fs_type = {
5566 .owner = THIS_MODULE, 5556 .owner = THIS_MODULE,