mm-memcg-avoid-page-count-check-for-zone-device.patch removed from -mm tree
The patch titled
Subject: mm/memcg: avoid page count check for zone device
has been removed from the -mm tree. Its filename was
mm-memcg-avoid-page-count-check-for-zone-device.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Jérôme Glisse <[email protected]>
Subject: mm/memcg: avoid page count check for zone device
Fix for 4.14, zone device page always have an elevated refcount of one and thus page count sanity check in uncharge_page() is inappropriate for them.
[[email protected]: nano-optimize VM_BUG_ON in uncharge_page]
Signed-off-by Jérôme Glisse <[email protected]>
Signed-off-by Michal Hocko <[email protected]>
Reported-by Evgeny Baskakov <[email protected]>
Acked-by Michal Hocko <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Vladimir Davydov <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-avoid-page-count-check-for-zone-device +2 -1
@@ -5658,7 +5658,8 @@ static void uncharge_batch(const structstatic void uncharge_page (struct page *page,struct uncharge_gather *ug) {VM_BUG_ON_PAGE (PageLRU (page), page); -VM_BUG_ON_PAGE (!PageHWPoison (page) &&page_count (page), page); +VM_BUG_ON_PAGE (page_count (page) && !is_zone_device_page (page) && + !PageHWPoison (page) , page);if (!page->mem_cgroup)return ;
_
Patches currently in -mm which might be from [email protected] are
mm-mmu_notifier-avoid-double-notification-when-it-is-useless.patch