+54
−59
Loading
mainline inclusion from mainline-v6.10-rc1 commit 8d1e24c0b82d9730d05ee85eb7f4195df8cdf6a6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAXCD2 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8d1e24c0b82d9730d05ee85eb7f4195df8cdf6a6 -------------------------------- Pull folios from the page cache instead of pages. Half of this work had been done already, but we were still operating on pages for a large chunk of this function. There is no attempt in this patch to handle large folios that are smaller than a THP; that will have to wait for a future patch. [willy@infradead.org: the unlikely() is embedded in IS_ERR()] Link: https://lkml.kernel.org/r/ZhIWX8K0E2tSyMSr@casper.infradead.org Link: https://lkml.kernel.org/r/20240403171838.1445826-7-willy@infradead.org Signed-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Conflicts: mm/khugepaged.c [return val conflict for copy_mc_highpage, which is introduced by commit 681be068 ("mm/hwpoison: return -EFAULT when copy fail in copy_mc_[user]_highpage()")] Signed-off-by:
Nanyong Sun <sunnanyong@huawei.com>