]> git.baikalelectronics.ru Git - kernel.git/commit
mempolicy: mask off internal flags for userspace API
authorDavid Rientjes <rientjes@google.com>
Fri, 4 Jul 2008 19:24:13 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jul 2008 20:03:05 +0000 (13:03 -0700)
commit85292e34a9ed53215ea0cd320afee15c36547e38
treed5a1c06209210c84ec60099687e4a87723ae1599
parentc35ac8034311d5021fd214f2de31b8c3ebace5be
mempolicy: mask off internal flags for userspace API

Flags considered internal to the mempolicy kernel code are stored as part
of the "flags" member of struct mempolicy.

Before exposing a policy type to userspace via get_mempolicy(), these
internal flags must be masked.  Flags exposed to userspace, however,
should still be returned to the user.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c