UPSTREAM: f2fs: check zone write pointer points to the end of zone
We don't need to report an issue, when the zone write pointer already points to the end of the zone, since the zone mismatch is already taken care. Change-Id: Ifc967abe44521cd239ebac509353c25e36cc7a18 Signed-off-by: Daeho Jeong <daehojeong@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit c9667b19e2cf13735fe2620f9d97b788897cd4af)
This commit is contained in:
parent
c9e29a0073
commit
b2d3a555d3
1 changed files with 6 additions and 2 deletions
|
|
@ -4812,8 +4812,12 @@ static int check_zone_write_pointer(struct f2fs_sb_info *sbi,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The write pointer matches with the valid blocks
|
/*
|
||||||
if (last_valid_block + 1 == wp_block)
|
* The write pointer matches with the valid blocks or
|
||||||
|
* already points to the end of the zone.
|
||||||
|
*/
|
||||||
|
if ((last_valid_block + 1 == wp_block) ||
|
||||||
|
(zone->wp == zone->start + zone->len))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (last_valid_block + 1 == zone_block) {
|
if (last_valid_block + 1 == zone_block) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue