aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index f7479d30735e..aa22acd6eb06 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -732,6 +732,8 @@ static int ext4_show_options(struct seq_file *seq, struct vfsmount *vfs)
732 seq_puts(seq, ",nobh"); 732 seq_puts(seq, ",nobh");
733 if (!test_opt(sb, EXTENTS)) 733 if (!test_opt(sb, EXTENTS))
734 seq_puts(seq, ",noextents"); 734 seq_puts(seq, ",noextents");
735 if (test_opt(sb, I_VERSION))
736 seq_puts(seq, ",i_version");
735 737
736 if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) 738 if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)
737 seq_puts(seq, ",data=journal"); 739 seq_puts(seq, ",data=journal");
@@ -874,7 +876,7 @@ enum {
874 Opt_usrjquota, Opt_grpjquota, Opt_offusrjquota, Opt_offgrpjquota, 876 Opt_usrjquota, Opt_grpjquota, Opt_offusrjquota, Opt_offgrpjquota,
875 Opt_jqfmt_vfsold, Opt_jqfmt_vfsv0, Opt_quota, Opt_noquota, 877 Opt_jqfmt_vfsold, Opt_jqfmt_vfsv0, Opt_quota, Opt_noquota,
876 Opt_ignore, Opt_barrier, Opt_err, Opt_resize, Opt_usrquota, 878 Opt_ignore, Opt_barrier, Opt_err, Opt_resize, Opt_usrquota,
877 Opt_grpquota, Opt_extents, Opt_noextents, 879 Opt_grpquota, Opt_extents, Opt_noextents, Opt_i_version,
878}; 880};
879 881
880static match_table_t tokens = { 882static match_table_t tokens = {
@@ -928,6 +930,7 @@ static match_table_t tokens = {
928 {Opt_barrier, "barrier=%u"}, 930 {Opt_barrier, "barrier=%u"},
929 {Opt_extents, "extents"}, 931 {Opt_extents, "extents"},
930 {Opt_noextents, "noextents"}, 932 {Opt_noextents, "noextents"},
933 {Opt_i_version, "i_version"},
931 {Opt_err, NULL}, 934 {Opt_err, NULL},
932 {Opt_resize, "resize"}, 935 {Opt_resize, "resize"},
933}; 936};
@@ -1273,6 +1276,10 @@ clear_qf_name:
1273 case Opt_noextents: 1276 case Opt_noextents:
1274 clear_opt (sbi->s_mount_opt, EXTENTS); 1277 clear_opt (sbi->s_mount_opt, EXTENTS);
1275 break; 1278 break;
1279 case Opt_i_version:
1280 set_opt(sbi->s_mount_opt, I_VERSION);
1281 sb->s_flags |= MS_I_VERSION;
1282 break;
1276 default: 1283 default:
1277 printk (KERN_ERR 1284 printk (KERN_ERR
1278 "EXT4-fs: Unrecognized mount option \"%s\" " 1285 "EXT4-fs: Unrecognized mount option \"%s\" "
@@ -3197,7 +3204,6 @@ out:
3197 i_size_write(inode, off+len-towrite); 3204 i_size_write(inode, off+len-towrite);
3198 EXT4_I(inode)->i_disksize = inode->i_size; 3205 EXT4_I(inode)->i_disksize = inode->i_size;
3199 } 3206 }
3200 inode->i_version++;
3201 inode->i_mtime = inode->i_ctime = CURRENT_TIME; 3207 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
3202 ext4_mark_inode_dirty(handle, inode); 3208 ext4_mark_inode_dirty(handle, inode);
3203 mutex_unlock(&inode->i_mutex); 3209 mutex_unlock(&inode->i_mutex);