mm, memory_failure: Collect mapping size in collect_procs()
authorDan Williams <dan.j.williams@intel.com>
Sat, 14 Jul 2018 04:50:11 +0000 (21:50 -0700)
committerDave Jiang <dave.jiang@intel.com>
Mon, 23 Jul 2018 17:38:05 +0000 (10:38 -0700)
commitae1139ece126b8eb6d0770094fbac43ea928d9d9
tree9985e081de69db5a2e119969fabf0d1fe23d7215
parent23e7b5c2e2715947cf1ff57124dd3e96caf48521
mm, memory_failure: Collect mapping size in collect_procs()

In preparation for supporting memory_failure() for dax mappings, teach
collect_procs() to also determine the mapping size. Unlike typical
mappings the dax mapping size is determined by walking page-table
entries rather than using the compound-page accounting for THP pages.

Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
mm/memory-failure.c