Skip to content

Commit

Permalink
GFS2: Use nobh_writepage
Browse files Browse the repository at this point in the history
Use nobh_writepage rather than calling mpage_writepage directly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Steven Whitehouse committed Jul 29, 2010
1 parent 540ad6b commit 30116ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/gfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 30116ff

Please sign in to comment.