Skip to content

Commit c3db3c2

Browse files
Pavel MachekJaegeuk Kim
authored andcommitted
f2fs: should put a page when checking the summary info
The commit introduces another bug. Cc: [email protected] Fixes: c6ad7fd ("f2fs: fix to do sanity check on summary info") Signed-off-by: Pavel Machek <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent bbb8ceb commit c3db3c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/f2fs/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ static bool is_alive(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
11101110
if (ofs_in_node >= max_addrs) {
11111111
f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%u, nid:%u, max:%u",
11121112
ofs_in_node, dni->ino, dni->nid, max_addrs);
1113+
f2fs_put_page(node_page, 1);
11131114
return false;
11141115
}
11151116

0 commit comments

Comments
 (0)