diff options
-rw-r--r-- | fs/gfs2/bmap.c | 4 | ||||
-rw-r--r-- | fs/gfs2/quota.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 14a704015970..197c5c47e577 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -60,7 +60,7 @@ static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, | |||
60 | int release = 0; | 60 | int release = 0; |
61 | 61 | ||
62 | if (!page || page->index) { | 62 | if (!page || page->index) { |
63 | page = grab_cache_page(inode->i_mapping, 0); | 63 | page = find_or_create_page(inode->i_mapping, 0, GFP_NOFS); |
64 | if (!page) | 64 | if (!page) |
65 | return -ENOMEM; | 65 | return -ENOMEM; |
66 | release = 1; | 66 | release = 1; |
@@ -930,7 +930,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping, loff_t from) | |||
930 | struct page *page; | 930 | struct page *page; |
931 | int err; | 931 | int err; |
932 | 932 | ||
933 | page = grab_cache_page(mapping, index); | 933 | page = find_or_create_page(mapping, index, GFP_NOFS); |
934 | if (!page) | 934 | if (!page) |
935 | return 0; | 935 | return 0; |
936 | 936 | ||
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index a45b21b03915..4856c66640bf 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -681,7 +681,7 @@ static int gfs2_adjust_quota(struct gfs2_inode *ip, loff_t loc, | |||
681 | ptr = qp; | 681 | ptr = qp; |
682 | nbytes = sizeof(struct gfs2_quota); | 682 | nbytes = sizeof(struct gfs2_quota); |
683 | get_a_page: | 683 | get_a_page: |
684 | page = grab_cache_page(mapping, index); | 684 | page = find_or_create_page(mapping, index, GFP_NOFS); |
685 | if (!page) | 685 | if (!page) |
686 | return -ENOMEM; | 686 | return -ENOMEM; |
687 | 687 | ||