aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-12-15 20:28:48 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-12-15 20:28:48 -0500
commit673c610033a8202c037ecd068c7a235495acda17 (patch)
treee47ca541bf33f1d43d4ced9b72d6100853896236
parentfd8c37eccdda21153298997417144b38b1623196 (diff)
ext4: Move struct ext4_mount_options from ext4.h to super.c
Move the ext4_mount_options structure definition from ext4.h, since it is only used in super.c. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--fs/ext4/ext4.h16
-rw-r--r--fs/ext4/super.c15
2 files changed, 15 insertions, 16 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 2d93620d092e..ddae3c435138 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -561,22 +561,6 @@ struct ext4_new_group_data {
561#define EXT4_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION 561#define EXT4_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION
562#endif 562#endif
563 563
564
565/*
566 * Mount options
567 */
568struct ext4_mount_options {
569 unsigned long s_mount_opt;
570 uid_t s_resuid;
571 gid_t s_resgid;
572 unsigned long s_commit_interval;
573 u32 s_min_batch_time, s_max_batch_time;
574#ifdef CONFIG_QUOTA
575 int s_jquota_fmt;
576 char *s_qf_names[MAXQUOTAS];
577#endif
578};
579
580/* Max physical block we can addres w/o extents */ 564/* Max physical block we can addres w/o extents */
581#define EXT4_MAX_BLOCK_FILE_PHYS 0xFFFFFFFF 565#define EXT4_MAX_BLOCK_FILE_PHYS 0xFFFFFFFF
582 566
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index cf7d9131d785..7aa3a790363a 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4166,6 +4166,21 @@ static int ext4_unfreeze(struct super_block *sb)
4166 return 0; 4166 return 0;
4167} 4167}
4168 4168
4169/*
4170 * Structure to save mount options for ext4_remount's benefit
4171 */
4172struct ext4_mount_options {
4173 unsigned long s_mount_opt;
4174 uid_t s_resuid;
4175 gid_t s_resgid;
4176 unsigned long s_commit_interval;
4177 u32 s_min_batch_time, s_max_batch_time;
4178#ifdef CONFIG_QUOTA
4179 int s_jquota_fmt;
4180 char *s_qf_names[MAXQUOTAS];
4181#endif
4182};
4183
4169static int ext4_remount(struct super_block *sb, int *flags, char *data) 4184static int ext4_remount(struct super_block *sb, int *flags, char *data)
4170{ 4185{
4171 struct ext4_super_block *es; 4186 struct ext4_super_block *es;