mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nobuhiko Yoshida <n-yoshida@pst.fujitsu.com>
To: linux-kernel@vger.kernel.org, lhms-devel@lists.sourceforge.net
Subject: [PATCH] ia64 memory hotplug for hugetlbpages [3/3]
Date: Tue, 27 Jul 2004 10:05:31 +0900	[thread overview]
Message-ID: <JT200407271005318.5179656@pst.fujitsu.com> (raw)

diff -dupr linux-2.6.7/arch/ia64/mm/hugetlbpage.c linux-2.6.7-REMAP/arch/ia64/mm/hugetlbpage.c
--- linux-2.6.7/arch/ia64/mm/hugetlbpage.c	2004-07-09 16:37:31.000000000 +0900
+++ linux-2.6.7-REMAP/arch/ia64/mm/hugetlbpage.c	2004-07-09 16:49:34.000000000 +0900
@@ -372,6 +372,15 @@ again:
 			goto again;
 		}
 	}
+
+	if (page->mapping == NULL) {
+		BUG_ON(! PageAgain(page));
+		/* This page will go back to freelists[] */
+		put_page(page); /* XXX */
+		unlock_page(page);
+		goto again;
+	}
+
 	if (pte_none(*pte)) {
 		set_huge_pte(mm, vma, page, pte, vma->vm_flags & VM_WRITE);
 		page_add_file_rmap(page);

                 reply	other threads:[~2004-07-27  1:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JT200407271005318.5179656@pst.fujitsu.com \
    --to=n-yoshida@pst.fujitsu.com \
    --cc=lhms-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®