diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-06 10:08:33 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-01-07 08:57:04 +0000 |
commit | e4fefbac6c5bcb0388d95e83801210e7d81a071b (patch) | |
tree | b9147be1dd2f388d21b6a8e898ee0b21a97ff39d | |
parent | ede6f5aea054d3fb67c78857f7abdee602302043 (diff) | |
download | linux-3.10-e4fefbac6c5bcb0388d95e83801210e7d81a071b.tar.gz linux-3.10-e4fefbac6c5bcb0388d95e83801210e7d81a071b.tar.bz2 linux-3.10-e4fefbac6c5bcb0388d95e83801210e7d81a071b.zip |
GFS2: Set GFP_NOFS when allocating page on write
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>
-rw-r--r-- | fs/gfs2/ops_address.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 6e4ea36c660..4ddab67867e 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c @@ -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)) |