]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff814de35dc0382f6e85b0c38e88949ea7f85e53
tree7176db312e0090040e9798f2c7e6371bb78eedd7
parentd50b5447375e75134adb015164d6945b088e286d
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