aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-05-06 10:43:07 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:36:08 -0400
commitbbd6851a3213a525128473e978b692ab6ac11aba (patch)
tree8ebddebadd8992871ab98456187cb00849a82058 /fs/ext4
parent6cfd0148425e528b859b26e436b01f23f6926224 (diff)
Push lock_super() into the ->remount_fs() of filesystems that care about it
Note that since we can't run into contention between remount_fs and write_super (due to exclusion on s_umount), we have to care only about filesystems that touch lock_super() on their own. Out of those ext3, ext4, hpfs, sysv and ufs do need it; fat doesn't since its ->remount_fs() only accesses assign-once data (basically, it's "we have no atime on directories and only have atime on files for vfat; force nodiratime and possibly noatime into *flags"). [folded a build fix from hch] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 1d4180b8677..a9c68342592 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3421,6 +3421,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
3421#endif 3421#endif
3422 3422
3423 /* Store the original options */ 3423 /* Store the original options */
3424 lock_super(sb);
3424 old_sb_flags = sb->s_flags; 3425 old_sb_flags = sb->s_flags;
3425 old_opts.s_mount_opt = sbi->s_mount_opt; 3426 old_opts.s_mount_opt = sbi->s_mount_opt;
3426 old_opts.s_resuid = sbi->s_resuid; 3427 old_opts.s_resuid = sbi->s_resuid;
@@ -3554,6 +3555,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
3554 old_opts.s_qf_names[i] != sbi->s_qf_names[i]) 3555 old_opts.s_qf_names[i] != sbi->s_qf_names[i])
3555 kfree(old_opts.s_qf_names[i]); 3556 kfree(old_opts.s_qf_names[i]);
3556#endif 3557#endif
3558 unlock_super(sb);
3557 return 0; 3559 return 0;
3558 3560
3559restore_opts: 3561restore_opts:
@@ -3573,6 +3575,7 @@ restore_opts:
3573 sbi->s_qf_names[i] = old_opts.s_qf_names[i]; 3575 sbi->s_qf_names[i] = old_opts.s_qf_names[i];
3574 } 3576 }
3575#endif 3577#endif
3578 unlock_super(sb);
3576 return err; 3579 return err;
3577} 3580}
3578 3581