]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
GFS2: Use nobh_writepage
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 14 Jun 2010 08:58:41 +0000 (09:58 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 29 Jul 2010 08:36:14 +0000 (09:36 +0100)
Use nobh_writepage rather than calling mpage_writepage directly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
fs/gfs2/aops.c

index 9f8b52500d63551c4111370bc59b357cb177f60a..9485a882d80bb9d5190c6267549296ce5d392a3e 100644 (file)
@@ -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);
 }
 
 /**