aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-03-23 16:35:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-01 19:01:31 -0400
commit98c3dd1b87921fc6a15718c43c4937bef98c4721 (patch)
treed3146b091edc2e43faff9cf94cfaf1c640138c3b /mm
parent7ba7b75f8e19026459f54c60459e325ed08363b7 (diff)
tmpfs: handle MPOL_LOCAL mount option properly
commit 12821f5fb942e795f8009ece14bde868893bd811 upstream. commit 71fe804b6d5 (mempolicy: use struct mempolicy pointer in shmem_sb_info) added mpol=local mount option. but its feature is broken since it was born. because such code always return 1 (i.e. mount failure). This patch fixes it. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Ravikiran Thirumalai <kiran@scalex86.org> Cc: Christoph Lameter <cl@linux-foundation.org> Cc: Mel Gorman <mel@csn.ul.ie> Acked-by: Lee Schermerhorn <lee.schermerhorn@hp.com> Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
-rw-r--r--mm/mempolicy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index a5316cb9b8fb..5d07a4b693ec 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -2186,6 +2186,7 @@ int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context)
2186 if (nodelist) 2186 if (nodelist)
2187 goto out; 2187 goto out;
2188 mode = MPOL_PREFERRED; 2188 mode = MPOL_PREFERRED;
2189 err = 0;
2189 break; 2190 break;
2190 case MPOL_DEFAULT: 2191 case MPOL_DEFAULT:
2191 /* 2192 /*