diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 69ea663ef03e..755ba8682233 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -341,6 +341,7 @@ static int __ext4_check_blockref(const char *function, unsigned int line, | |||
341 | struct inode *inode, | 341 | struct inode *inode, |
342 | __le32 *p, unsigned int max) | 342 | __le32 *p, unsigned int max) |
343 | { | 343 | { |
344 | struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; | ||
344 | __le32 *bref = p; | 345 | __le32 *bref = p; |
345 | unsigned int blk; | 346 | unsigned int blk; |
346 | 347 | ||
@@ -349,6 +350,7 @@ static int __ext4_check_blockref(const char *function, unsigned int line, | |||
349 | if (blk && | 350 | if (blk && |
350 | unlikely(!ext4_data_block_valid(EXT4_SB(inode->i_sb), | 351 | unlikely(!ext4_data_block_valid(EXT4_SB(inode->i_sb), |
351 | blk, 1))) { | 352 | blk, 1))) { |
353 | es->s_last_error_block = cpu_to_le64(blk); | ||
352 | ext4_error_inode(inode, function, line, blk, | 354 | ext4_error_inode(inode, function, line, blk, |
353 | "invalid block"); | 355 | "invalid block"); |
354 | return -EIO; | 356 | return -EIO; |