+ mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix
has been added to the -mm tree.  Its filename is
     mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix.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: Jan Kara <jack@xxxxxxx>
Subject: mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix

fix expected_page_refs()

Link: http://lkml.kernel.org/r/20181217131710.GB8611@xxxxxxxxxxxxxx
Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/migrate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/migrate.c~mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix
+++ a/mm/migrate.c
@@ -434,7 +434,7 @@ static int expected_page_refs(struct pag
 	 */
 	expected_count += is_device_private_page(page);
 	expected_count += is_device_public_page(page);
-	if (page->mapping)
+	if (page_mapping(page))
 		expected_count += hpage_nr_pages(page) + page_has_private(page);
 
 	return expected_count;
_

Patches currently in -mm which might be from jack@xxxxxxx are

mm-migration-factor-out-code-to-compute-expected-number-of-page-references.patch
mm-migration-factor-out-code-to-compute-expected-number-of-page-references-fix.patch
mm-migrate-lock-buffers-before-migrate_page_move_mapping.patch
mm-migrate-move-migrate_page_lock_buffers.patch
mm-migrate-provide-buffer_migrate_page_norefs.patch
blkdev-avoid-migration-stalls-for-blkdev-pages.patch
mm-migrate-drop-unused-argument-of-migrate_page_move_mapping.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux