]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_buf.c
Merge tag 'xfs-4.12-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[karo-tx-linux.git] / fs / xfs / xfs_buf.c
index ba036c11be94d4a9346be655399ab2ea8fc75dfa..62fa39276a24bd91c26e3aa18c9f162f19842b95 100644 (file)
@@ -443,17 +443,17 @@ _xfs_buf_map_pages(
                bp->b_addr = NULL;
        } else {
                int retried = 0;
-               unsigned noio_flag;
+               unsigned nofs_flag;
 
                /*
                 * vm_map_ram() will allocate auxillary structures (e.g.
                 * pagetables) with GFP_KERNEL, yet we are likely to be under
                 * GFP_NOFS context here. Hence we need to tell memory reclaim
-                * that we are in such a context via PF_MEMALLOC_NOIO to prevent
+                * that we are in such a context via PF_MEMALLOC_NOFS to prevent
                 * memory reclaim re-entering the filesystem here and
                 * potentially deadlocking.
                 */
-               noio_flag = memalloc_noio_save();
+               nofs_flag = memalloc_nofs_save();
                do {
                        bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count,
                                                -1, PAGE_KERNEL);
@@ -461,7 +461,7 @@ _xfs_buf_map_pages(
                                break;
                        vm_unmap_aliases();
                } while (retried++ <= 1);
-               memalloc_noio_restore(noio_flag);
+               memalloc_nofs_restore(nofs_flag);
 
                if (!bp->b_addr)
                        return -ENOMEM;