]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mempolicy: fix get_mempolicy() for relative and static nodes
authorLee Schermerhorn <lee.schermerhorn@hp.com>
Tue, 23 Mar 2010 20:35:41 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:22 +0000 (16:31 -0700)
commitc6b6ef8bb05af632889c5536513b9f4004961f73
tree85f90f246fa1da0d47c48c43a735bbfac33c542e
parent7198f3c9b13c7aa1e5d9f7ff74c0ea303174feff
mempolicy: fix get_mempolicy() for relative and static nodes

Discovered while testing other mempolicy changes:

get_mempolicy() does not handle static/relative mode flags correctly.
Return the value that the user specified so that it can be restored
via set_mempolicy() if desired.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Ravikiran Thirumalai <kiran@scalex86.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c