summaryrefslogtreecommitdiff
path: root/fs/gfs2/aops.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2010-06-14 12:58:41 +0400
committerSteven Whitehouse <swhiteho@redhat.com>2010-07-29 12:36:14 +0400
commit30116ff6c6d140bc696cc624e6d8e38f018c886e (patch)
treed6a69965d025c9de83ff0611a6c5eda913da0430 /fs/gfs2/aops.c
parent540ad6b62b3a188a53b51cac81d8a60d40e29fbd (diff)
downloadlinux-30116ff6c6d140bc696cc624e6d8e38f018c886e.tar.xz
GFS2: Use nobh_writepage
Use nobh_writepage rather than calling mpage_writepage directly. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r--fs/gfs2/aops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 9f8b52500d63..9485a882d80b 100644
--- a/fs/gfs2/aops.c
+++ b/fs/gfs2/aops.c
@@ -136,10 +136,7 @@ static int gfs2_writeback_writepage(struct page *page,
if (ret <= 0)
return ret;
- ret = mpage_writepage(page, gfs2_get_block_noalloc, wbc);
- if (ret == -EAGAIN)
- ret = block_write_full_page(page, gfs2_get_block_noalloc, wbc);
- return ret;
+ return nobh_writepage(page, gfs2_get_block_noalloc, wbc);
}
/**