Skip to content

Commit

Permalink
GFS2: Set GFP_NOFS when allocating page on write
Browse files Browse the repository at this point in the history
We need to ensure that we always set GFP_NOFS in this one
particular case when allocating pages for write.

Reported-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jan 7, 2009
1 parent ede6f5a commit e4fefba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping,
goto out_trans_fail;

error = -ENOMEM;
flags |= AOP_FLAG_NOFS;
page = grab_cache_page_write_begin(mapping, index, flags);
*pagep = page;
if (unlikely(!page))
Expand Down

0 comments on commit e4fefba

Please sign in to comment.