diff options
| author | Chao Yu <chao@kernel.org> | 2026-08-05 12:20:08 +0000 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-08-05 21:19:35 +0000 |
| commit | 026d7aeadf27291f961893165edb6079a7078f6f (patch) | |
| tree | bcd63bc12b1164c0dda868b2dd2ae361798552ef | |
| parent | 0f9af07ecc1ab486038373db6ae0436c5d674b19 (diff) | |
| download | linux-next-026d7aeadf27291f961893165edb6079a7078f6f.tar.gz linux-next-026d7aeadf27291f961893165edb6079a7078f6f.zip | |
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: 3cb396a2c790 ("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>
| -rw-r--r-- | fs/f2fs/node.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 38917e4a7319..9775fa90636a 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -660,6 +660,7 @@ sanity_check: __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 */ |
