diff options
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index f2c62e2a0c98..d40ed940001e 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -518,10 +518,14 @@ __read_extent_tree_block(const char *function, unsigned int line, | |||
518 | } | 518 | } |
519 | if (buffer_verified(bh) && !(flags & EXT4_EX_FORCE_CACHE)) | 519 | if (buffer_verified(bh) && !(flags & EXT4_EX_FORCE_CACHE)) |
520 | return bh; | 520 | return bh; |
521 | err = __ext4_ext_check(function, line, inode, | 521 | if (!ext4_has_feature_journal(inode->i_sb) || |
522 | ext_block_hdr(bh), depth, pblk); | 522 | (inode->i_ino != |
523 | if (err) | 523 | le32_to_cpu(EXT4_SB(inode->i_sb)->s_es->s_journal_inum))) { |
524 | goto errout; | 524 | err = __ext4_ext_check(function, line, inode, |
525 | ext_block_hdr(bh), depth, pblk); | ||
526 | if (err) | ||
527 | goto errout; | ||
528 | } | ||
525 | set_buffer_verified(bh); | 529 | set_buffer_verified(bh); |
526 | /* | 530 | /* |
527 | * If this is a leaf block, cache all of its entries | 531 | * If this is a leaf block, cache all of its entries |