xfs: introduce xfs_bmapi_delay()
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Sep 2011 20:40:48 +0000 (20:40 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:04 +0000 (21:15 -0500)
commit4403280aa5c00c6074f2dc23e1cfc11f2bfb0032
tree322f188e78d6faf1cae53cb56ed7918d49702366
parentb64dfe4e180ab5047c59bcbe379538eb23be4d8e
xfs: introduce xfs_bmapi_delay()

Delalloc reservations are much simpler than allocations, so give
them a separate bmapi-level interface.  Using the previously added
xfs_bmapi_reserve_delalloc we get a function that is only minimally
more complicated than xfs_bmapi_read, which is far from the complexity
in xfs_bmapi.  Also remove the XFS_BMAPI_DELAY code after switching
over the only user to xfs_bmapi_delay.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_bmap.c
fs/xfs/xfs_bmap.h
fs/xfs/xfs_iomap.c