]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/gfs2/bmap.c
GFS2: Change truncate page allocation to be GFP_NOFS
[karo-tx-linux.git] / fs / gfs2 / bmap.c
index 14a704015970f825b0dec962cd546b94e232355b..197c5c47e57763c7f8c926be7e8c527463107c0e 100644 (file)
@@ -60,7 +60,7 @@ static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh,
        int release = 0;
 
        if (!page || page->index) {
-               page = grab_cache_page(inode->i_mapping, 0);
+               page = find_or_create_page(inode->i_mapping, 0, GFP_NOFS);
                if (!page)
                        return -ENOMEM;
                release = 1;
@@ -930,7 +930,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping, loff_t from)
        struct page *page;
        int err;
 
-       page = grab_cache_page(mapping, index);
+       page = find_or_create_page(mapping, index, GFP_NOFS);
        if (!page)
                return 0;