xfs: limit xfs_imap_to_bmap to a single mapping
authorChristoph Hellwig <hch@infradead.org>
Wed, 28 Apr 2010 12:28:51 +0000 (12:28 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:16 +0000 (09:58 -0500)
commit826bf0adce0cddd9c94c2706b63d181dfc5cdaaa
tree7176db312e0090040e9798f2c7e6371bb78eedd7
parent4a5224d7b167e5470ad34e5b1b6965a16f87854f
xfs: limit xfs_imap_to_bmap to a single mapping

We only call xfs_iomap for single mappings anyway, so remove all
code dealing with multiple mappings from xfs_imap_to_bmap and add
asserts that we never get results that we do not expect.

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