]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08e822ab7670163a2bf593699b27fb66bc5f572d
tree445282b1c9de68e6b209444317c2fee3b2e5f095
parent6d1106f6d96bcec48f4cdb2d6892f31ad3d39795
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