mempolicy.c (13293115d1c44df1077976473112d18f1877c390) mempolicy.c (8790c71a18e5d2d93532ae250bcf5eddbba729cd)
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 2916 unchanged lines hidden (view full) ---

2925 */
2926void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)
2927{
2928 char *p = buffer;
2929 nodemask_t nodes = NODE_MASK_NONE;
2930 unsigned short mode = MPOL_DEFAULT;
2931 unsigned short flags = 0;
2932
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 2916 unchanged lines hidden (view full) ---

2925 */
2926void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)
2927{
2928 char *p = buffer;
2929 nodemask_t nodes = NODE_MASK_NONE;
2930 unsigned short mode = MPOL_DEFAULT;
2931 unsigned short flags = 0;
2932
2933 if (pol && pol != &default_policy) {
2933 if (pol && pol != &default_policy && !(pol->flags & MPOL_F_MORON)) {
2934 mode = pol->mode;
2935 flags = pol->flags;
2936 }
2937
2938 switch (mode) {
2939 case MPOL_DEFAULT:
2940 break;
2941 case MPOL_PREFERRED:

--- 34 unchanged lines hidden ---
2934 mode = pol->mode;
2935 flags = pol->flags;
2936 }
2937
2938 switch (mode) {
2939 case MPOL_DEFAULT:
2940 break;
2941 case MPOL_PREFERRED:

--- 34 unchanged lines hidden ---