OSDN Git Service

Align the pageBlockOrder to the kerne 4.19 kernel
authorhe, bo <bo.he@intel.com>
Fri, 26 Oct 2018 01:23:58 +0000 (09:23 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Nov 2019 04:55:33 +0000 (12:55 +0800)
Change-Id: Ieb76e3d78856c80c0450e239b5ba026219920c2e
Tracked-On: https://jira01.devtools.intel.com/browse/OAM-70044
Signed-off-by: he, bo <bo.he@intel.com>
cmds/incident_helper/src/parsers/PageTypeInfoParser.cpp

index 0615c74..bb587b5 100644 (file)
@@ -79,10 +79,10 @@ PageTypeInfoParser::Parse(const int in, const int out) const
                 // An example looks like:
                 // header line:      type    0   1   2 3 4 5 6 7 8 9 10
                 // record line: Unmovable  426 279 226 1 1 1 0 0 2 2  0
-                // The pageBlockOrder = 10 and it's zero-indexed. so total parts
-                // are 10 + 1(zero-indexed) + 1(the type part) = 12.
+                // The pageBlockOrder = 9 and it's zero-indexed. so total parts
+                // are 9 + 1(zero-indexed for pageBlockOrder) +1(zero-indexed) + 1(the type part) = 12.
                 record_t pageCounts = parseRecord(record[2]);
-                int pageCountsSize = pageBlockOrder + 2;
+                int pageCountsSize = pageBlockOrder + 3;
                 if ((int)pageCounts.size() != pageCountsSize) return BAD_VALUE;
 
                 proto.write(PageTypeInfoProto::MigrateType::TYPE, pageCounts[0]);