* + mm-migrate-remove-cpages-in-migrate_vma_finalize.patch added to -mm tree
@ 2020-08-30 22:20 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-08-30 22:20 UTC (permalink / raw)
To: mm-commits, jhubbard, jglisse, jgg, hch, rcampbell
The patch titled
Subject: mm/migrate: remove cpages-- in migrate_vma_finalize()
has been added to the -mm tree. Its filename is
mm-migrate-remove-cpages-in-migrate_vma_finalize.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-migrate-remove-cpages-in-migrate_vma_finalize.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-migrate-remove-cpages-in-migrate_vma_finalize.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Ralph Campbell <rcampbell@nvidia.com>
Subject: mm/migrate: remove cpages-- in migrate_vma_finalize()
The variable struct migrate_vma->cpages is only used in
migrate_vma_setup(). There is no need to decrement it in
migrate_vma_finalize() since it is never checked.
Link: http://lkml.kernel.org/r/20200827190735.12752-1-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/migrate.c | 1 -
1 file changed, 1 deletion(-)
--- a/mm/migrate.c~mm-migrate-remove-cpages-in-migrate_vma_finalize
+++ a/mm/migrate.c
@@ -3077,7 +3077,6 @@ void migrate_vma_finalize(struct migrate
remove_migration_ptes(page, newpage, false);
unlock_page(page);
- migrate->cpages--;
if (is_zone_device_page(page))
put_page(page);
_
Patches currently in -mm which might be from rcampbell@nvidia.com are
mm-migrate-remove-cpages-in-migrate_vma_finalize.patch
mm-migrate-remove-obsolete-comment-about-device-public.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-30 22:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-30 22:20 + mm-migrate-remove-cpages-in-migrate_vma_finalize.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.