diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-09-18 17:12:30 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-09-18 17:12:30 -0400 |
commit | f6e63f90809946d410c42045577cb159fedabf8c (patch) | |
tree | 2b7fe92c885e6de3a0d34e6df05ef5f43ef89f22 | |
parent | bb0445765866e5b1607af81e2f48ca5a8efbeed8 (diff) |
ext4: fold ext4_nojournal_sops into ext4_sops
There's no longer any need to have a separate set of super_operations
for nojournal mode.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | fs/ext4/super.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4db537b3a162..1070d6e521c6 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1123,27 +1123,6 @@ static const struct super_operations ext4_sops = { | |||
1123 | .bdev_try_to_free_page = bdev_try_to_free_page, | 1123 | .bdev_try_to_free_page = bdev_try_to_free_page, |
1124 | }; | 1124 | }; |
1125 | 1125 | ||
1126 | static const struct super_operations ext4_nojournal_sops = { | ||
1127 | .alloc_inode = ext4_alloc_inode, | ||
1128 | .destroy_inode = ext4_destroy_inode, | ||
1129 | .write_inode = ext4_write_inode, | ||
1130 | .dirty_inode = ext4_dirty_inode, | ||
1131 | .drop_inode = ext4_drop_inode, | ||
1132 | .evict_inode = ext4_evict_inode, | ||
1133 | .sync_fs = ext4_sync_fs, | ||
1134 | .freeze_fs = ext4_freeze, | ||
1135 | .unfreeze_fs = ext4_unfreeze, | ||
1136 | .put_super = ext4_put_super, | ||
1137 | .statfs = ext4_statfs, | ||
1138 | .remount_fs = ext4_remount, | ||
1139 | .show_options = ext4_show_options, | ||
1140 | #ifdef CONFIG_QUOTA | ||
1141 | .quota_read = ext4_quota_read, | ||
1142 | .quota_write = ext4_quota_write, | ||
1143 | #endif | ||
1144 | .bdev_try_to_free_page = bdev_try_to_free_page, | ||
1145 | }; | ||
1146 | |||
1147 | static const struct export_operations ext4_export_ops = { | 1126 | static const struct export_operations ext4_export_ops = { |
1148 | .fh_to_dentry = ext4_fh_to_dentry, | 1127 | .fh_to_dentry = ext4_fh_to_dentry, |
1149 | .fh_to_parent = ext4_fh_to_parent, | 1128 | .fh_to_parent = ext4_fh_to_parent, |
@@ -3941,11 +3920,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
3941 | /* | 3920 | /* |
3942 | * set up enough so that it can read an inode | 3921 | * set up enough so that it can read an inode |
3943 | */ | 3922 | */ |
3944 | if (!test_opt(sb, NOLOAD) && | 3923 | sb->s_op = &ext4_sops; |
3945 | EXT4_HAS_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_HAS_JOURNAL)) | ||
3946 | sb->s_op = &ext4_sops; | ||
3947 | else | ||
3948 | sb->s_op = &ext4_nojournal_sops; | ||
3949 | sb->s_export_op = &ext4_export_ops; | 3924 | sb->s_export_op = &ext4_export_ops; |
3950 | sb->s_xattr = ext4_xattr_handlers; | 3925 | sb->s_xattr = ext4_xattr_handlers; |
3951 | #ifdef CONFIG_QUOTA | 3926 | #ifdef CONFIG_QUOTA |