On 5/28/2024 6:45 AM, Kefeng Wang wrote:
+int folio_mc_copy(struct folio *dst, struct folio *src)+{ + long nr = folio_nr_pages(src); + long i = 0; + int ret = 0; + + for (;;) { + if (copy_mc_highpage(folio_page(dst, i), folio_page(src, i))) { + ret = -EFAULT; + break; + }
Why not be more specific by returning -EHWPOISON ? -jane