xfs: simplify xfs_vm_releasepage
authorChristoph Hellwig <hch@infradead.org>
Wed, 23 Jun 2010 23:45:48 +0000 (09:45 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:40 +0000 (13:16 -0500)
commit89f3b363967a958e756a549c8747c1fb9c930c1a
tree445282b1c9de68e6b209444317c2fee3b2e5f095
parent3d9b02e3c76531687ab5314e0edf266256f13c2d
xfs: simplify xfs_vm_releasepage

Currently the xfs releasepage implementation has code to deal with converting
delayed allocated and unwritten space.  But we never get called for those as
we always convert delayed and unwritten space when cleaning a page, or drop
the state from the buffers in block_invalidatepage.  We still keep a WARN_ON
on those cases for now, but remove all the case dealing with it, which allows
to fold xfs_page_state_convert into xfs_vm_writepage and remove the !startio
case from the whole writeback path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/linux-2.6/xfs_aops.c