We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2971148 commit f1eec3bCopy full SHA for f1eec3b
fs/ext4/super.c
@@ -3609,7 +3609,8 @@ int ext4_calculate_overhead(struct super_block *sb)
3609
*/
3610
if (sbi->s_journal && !sbi->journal_bdev)
3611
overhead += EXT4_NUM_B2C(sbi, sbi->s_journal->j_maxlen);
3612
- else if (ext4_has_feature_journal(sb) && !sbi->s_journal) {
+ else if (ext4_has_feature_journal(sb) && !sbi->s_journal && j_inum) {
3613
+ /* j_inum for internal journal is non-zero */
3614
j_inode = ext4_get_journal_inode(sb, j_inum);
3615
if (j_inode) {
3616
j_blocks = j_inode->i_size >> sb->s_blocksize_bits;
0 commit comments