aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-09-11 11:15:15 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-09-11 11:15:15 -0400
commita2d4a646e619541e803fb52636964df39aed94b7 (patch)
tree439906c07ebb373a4d6b3a662f3ecfafc502337e /fs/ext4/ext4.h
parenta49058fab2912296f068759490ac69ba43b43861 (diff)
ext4: don't use MAXQUOTAS value
MAXQUOTAS value defines maximum number of quota types VFS supports. This isn't necessarily the number of types ext4 supports. Although ext4 will support project quotas, use ext4 private definition for consistency with other filesystems. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index f70c3fc94296..1eb5b7b912a8 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -1175,6 +1175,9 @@ struct ext4_super_block {
1175#define EXT4_MF_MNTDIR_SAMPLED 0x0001 1175#define EXT4_MF_MNTDIR_SAMPLED 0x0001
1176#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */ 1176#define EXT4_MF_FS_ABORTED 0x0002 /* Fatal error detected */
1177 1177
1178/* Number of quota types we support */
1179#define EXT4_MAXQUOTAS 2
1180
1178/* 1181/*
1179 * fourth extended-fs super-block data in memory 1182 * fourth extended-fs super-block data in memory
1180 */ 1183 */
@@ -1238,7 +1241,7 @@ struct ext4_sb_info {
1238 u32 s_min_batch_time; 1241 u32 s_min_batch_time;
1239 struct block_device *journal_bdev; 1242 struct block_device *journal_bdev;
1240#ifdef CONFIG_QUOTA 1243#ifdef CONFIG_QUOTA
1241 char *s_qf_names[MAXQUOTAS]; /* Names of quota files with journalled quota */ 1244 char *s_qf_names[EXT4_MAXQUOTAS]; /* Names of quota files with journalled quota */
1242 int s_jquota_fmt; /* Format of quota to use */ 1245 int s_jquota_fmt; /* Format of quota to use */
1243#endif 1246#endif
1244 unsigned int s_want_extra_isize; /* New inodes should reserve # bytes */ 1247 unsigned int s_want_extra_isize; /* New inodes should reserve # bytes */