FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 06-07-2010, 10:03 AM
Christoph Hellwig
 
Default gfs2: stop using mpage_writepage

GFS2 always creates buffer_heads during ->write_begin or ->page_mkwrite,
which means mpage_writepage always falls back to block_write_full_page.

So stop calling mpage_writepage and always call block_write_full_page
directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/fs/gfs2/aops.c
================================================== =================
--- linux-2.6.orig/fs/gfs2/aops.c 2010-06-07 11:22:42.239273013 +0200
+++ linux-2.6/fs/gfs2/aops.c 2010-06-07 11:23:23.563255580 +0200
@@ -136,10 +136,7 @@ static int gfs2_writeback_writepage(stru
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 block_write_full_page(page, gfs2_get_block_noalloc, wbc);
}

/**
 

Thread Tools




All times are GMT. The time now is 06:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org