Browse Source

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>
Steven Whitehouse 15 năm trước cách đây
mục cha
commit
30116ff6c6
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      fs/gfs2/aops.c

+ 1 - 4
fs/gfs2/aops.c

@@ -136,10 +136,7 @@ static int gfs2_writeback_writepage(struct page *page,
 	if (ret <= 0)
 	if (ret <= 0)
 		return ret;
 		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);
 }
 }
 
 
 /**
 /**