mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
f2fs: fix to return -EFSCORRUPTED in f2fs_get_node_info() correctly
Otherwise, it will cache wrong nat info in cache.
Cc: stable@kernel.org
Fixes: 3cb396a2c7 ("f2fs: fix to do sanity check on nat entry of quota inode")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
0f9af07ecc
commit
026d7aeadf
|
|
@ -660,6 +660,7 @@ int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid,
|
|||
__builtin_return_address(0),
|
||||
ni->ino, ni->nid, ni->blk_addr, ni->version, ni->flag);
|
||||
f2fs_handle_error(sbi, ERROR_INCONSISTENT_NAT);
|
||||
return -EFSCORRUPTED;
|
||||
}
|
||||
|
||||
/* cache nat entry */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user