[PATCH 1/8] GFS2: Use nobh_writepage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Whitehouse
Date: Monday, August 2, 2010 - 2:27 am

Use nobh_writepage rather than calling mpage_writepage directly.

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

diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 9f8b525..9485a88 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);
 }
 
 /**
-- 
1.7.1.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GFS2: Pre-pull patch posting, Steven Whitehouse, (Mon Aug 2, 2:27 am)
[PATCH 1/8] GFS2: Use nobh_writepage, Steven Whitehouse, (Mon Aug 2, 2:27 am)
[PATCH 3/8] GFS2: Simplify gfs2_write_alloc_required, Steven Whitehouse, (Mon Aug 2, 2:27 am)
[PATCH 4/8] GFS2: remove dependency on __GFP_NOFAIL, Steven Whitehouse, (Mon Aug 2, 2:27 am)
[PATCH 7/8] GFS2: Fix typo in stuffed file data copy handling, Steven Whitehouse, (Mon Aug 2, 2:27 am)
[PATCH 8/8] GFS2: Fix recovery stuck bug (try #2), Steven Whitehouse, (Mon Aug 2, 2:27 am)