diff options
| author | Ralph Campbell <[email protected]> | 2020-10-13 16:58:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:35 -0700 |
| commit | 4257889124cce4526ebf29329bae8794e97b455a (patch) | |
| tree | 1acabdd37f205ed1fade266500a1972c2fd0ac2b | |
| parent | 67197a4f28d28d0b073ab0427b03cb2ee5382578 (diff) | |
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.
Signed-off-by: Ralph Campbell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Cc: Jerome Glisse <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
| -rw-r--r-- | mm/migrate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 4de11dfd730b..b0734900e953 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -3077,7 +3077,6 @@ void migrate_vma_finalize(struct migrate_vma *migrate) remove_migration_ptes(page, newpage, false); unlock_page(page); - migrate->cpages--; if (is_zone_device_page(page)) put_page(page); |