diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 7a13f6ac5421..068cd2a63d32 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -520,10 +520,10 @@ struct page *__page_cache_alloc(gfp_t gfp) | |||
520 | if (cpuset_do_page_mem_spread()) { | 520 | if (cpuset_do_page_mem_spread()) { |
521 | unsigned int cpuset_mems_cookie; | 521 | unsigned int cpuset_mems_cookie; |
522 | do { | 522 | do { |
523 | cpuset_mems_cookie = get_mems_allowed(); | 523 | cpuset_mems_cookie = read_mems_allowed_begin(); |
524 | n = cpuset_mem_spread_node(); | 524 | n = cpuset_mem_spread_node(); |
525 | page = alloc_pages_exact_node(n, gfp, 0); | 525 | page = alloc_pages_exact_node(n, gfp, 0); |
526 | } while (!put_mems_allowed(cpuset_mems_cookie) && !page); | 526 | } while (!page && read_mems_allowed_retry(cpuset_mems_cookie)); |
527 | 527 | ||
528 | return page; | 528 | return page; |
529 | } | 529 | } |