From: Christoph Lameter <clameter@sgi.com>
To: akpm@osdl.org
Cc: ak@suse.de, Christoph Lameter <clameter@sgi.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/4] mempolicies: unexport get_vma_policy()
Date: Mon, 21 Nov 2005 12:43:12 -0800 (PST) [thread overview]
Message-ID: <20051121204312.10630.45598.sendpatchset@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20051121204301.10630.76569.sendpatchset@schroedinger.engr.sgi.com>
Since the numa_maps functionality is now in mempolicy.c we no longer
need to export get_vma_policy().
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Index: linux-2.6.15-rc1-mm2/mm/mempolicy.c
===================================================================
--- linux-2.6.15-rc1-mm2.orig/mm/mempolicy.c 2005-11-21 12:39:54.000000000 -0800
+++ linux-2.6.15-rc1-mm2/mm/mempolicy.c 2005-11-21 12:40:38.000000000 -0800
@@ -943,8 +943,8 @@ asmlinkage long compat_sys_mbind(compat_
#endif
/* Return effective policy for a VMA */
-struct mempolicy *
-get_vma_policy(struct task_struct *task, struct vm_area_struct *vma, unsigned long addr)
+static struct mempolicy * get_vma_policy(struct task_struct *task,
+ struct vm_area_struct *vma, unsigned long addr)
{
struct mempolicy *pol = task->mempolicy;
Index: linux-2.6.15-rc1-mm2/include/linux/mempolicy.h
===================================================================
--- linux-2.6.15-rc1-mm2.orig/include/linux/mempolicy.h 2005-11-21 12:11:07.000000000 -0800
+++ linux-2.6.15-rc1-mm2/include/linux/mempolicy.h 2005-11-21 12:40:06.000000000 -0800
@@ -144,9 +144,6 @@ void mpol_free_shared_policy(struct shar
struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp,
unsigned long idx);
-struct mempolicy *get_vma_policy(struct task_struct *task,
- struct vm_area_struct *vma, unsigned long addr);
-
extern void numa_default_policy(void);
extern void numa_policy_init(void);
extern void numa_policy_rebind(const nodemask_t *old, const nodemask_t *new);
next prev parent reply other threads:[~2005-11-21 20:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 20:43 [PATCH 1/4] mempolicies: private pointer in check_range and MPOL_MF_INVERT Christoph Lameter
2005-11-21 20:43 ` [PATCH 2/4] Fold numa_maps into memopolicies.c Christoph Lameter
2005-11-21 20:43 ` Christoph Lameter [this message]
2005-11-21 20:43 ` [PATCH 4/4] Move page migration related functions near do_migrate_pages() Christoph Lameter
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=20051121204312.10630.45598.sendpatchset@schroedinger.engr.sgi.com \
--to=clameter@sgi.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--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®