diff options
Diffstat (limited to 'fs/ext4/super.c')
| -rw-r--r-- | fs/ext4/super.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 85b3dd60169b..bca26f34edf4 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
| @@ -1702,12 +1702,6 @@ static inline void ext4_show_quota_options(struct seq_file *seq, | |||
| 1702 | 1702 | ||
| 1703 | if (sbi->s_qf_names[GRPQUOTA]) | 1703 | if (sbi->s_qf_names[GRPQUOTA]) |
| 1704 | seq_printf(seq, ",grpjquota=%s", sbi->s_qf_names[GRPQUOTA]); | 1704 | seq_printf(seq, ",grpjquota=%s", sbi->s_qf_names[GRPQUOTA]); |
| 1705 | |||
| 1706 | if (test_opt(sb, USRQUOTA)) | ||
| 1707 | seq_puts(seq, ",usrquota"); | ||
| 1708 | |||
| 1709 | if (test_opt(sb, GRPQUOTA)) | ||
| 1710 | seq_puts(seq, ",grpquota"); | ||
| 1711 | #endif | 1705 | #endif |
| 1712 | } | 1706 | } |
| 1713 | 1707 | ||
| @@ -3624,10 +3618,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
| 3624 | sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb)); | 3618 | sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb)); |
| 3625 | sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb)); | 3619 | sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb)); |
| 3626 | 3620 | ||
| 3627 | /* Do we have standard group size of blocksize * 8 blocks ? */ | ||
| 3628 | if (sbi->s_blocks_per_group == blocksize << 3) | ||
| 3629 | set_opt2(sb, STD_GROUP_SIZE); | ||
| 3630 | |||
| 3631 | for (i = 0; i < 4; i++) | 3621 | for (i = 0; i < 4; i++) |
| 3632 | sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]); | 3622 | sbi->s_hash_seed[i] = le32_to_cpu(es->s_hash_seed[i]); |
| 3633 | sbi->s_def_hash_version = es->s_def_hash_version; | 3623 | sbi->s_def_hash_version = es->s_def_hash_version; |
| @@ -3697,6 +3687,10 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
| 3697 | goto failed_mount; | 3687 | goto failed_mount; |
| 3698 | } | 3688 | } |
| 3699 | 3689 | ||
| 3690 | /* Do we have standard group size of clustersize * 8 blocks ? */ | ||
| 3691 | if (sbi->s_blocks_per_group == clustersize << 3) | ||
| 3692 | set_opt2(sb, STD_GROUP_SIZE); | ||
| 3693 | |||
| 3700 | /* | 3694 | /* |
| 3701 | * Test whether we have more sectors than will fit in sector_t, | 3695 | * Test whether we have more sectors than will fit in sector_t, |
| 3702 | * and whether the max offset is addressable by the page cache. | 3696 | * and whether the max offset is addressable by the page cache. |
