xfs: remove some dead bio handling code
authorChristoph Hellwig <hch@infradead.org>
Fri, 10 Dec 2010 08:42:17 +0000 (08:42 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 16 Dec 2010 22:05:40 +0000 (16:05 -0600)
commit221cb2517e8fc9a1d67c7a8a9c19fc5a916b583f
tree891f7a8f1063f862a8c4d76882a0606191813fca
parent85da94c6b4666582c38579ccdcd90a5d9b5697ef
xfs: remove some dead bio handling code

We'll never have BIO_EOPNOTSUPP set after calling submit_bio as this
can only happen for discards, and used to happen for barriers, none
of which is every submitted by xfs_submit_ioend_bio.  Also remove
the loop around bio_alloc as it will never fail due to it's mempool
backing.

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