xfs: simplify xfs_map_at_offset
authorChristoph Hellwig <hch@infradead.org>
Fri, 10 Dec 2010 08:42:25 +0000 (08:42 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 16 Dec 2010 22:06:07 +0000 (16:06 -0600)
commitecff71e677c6d469f525dcf31ada709d5858307c
tree644ec23fd88da343a16e6272bd64d0d6d27ec2a6
parentaeea1b1f81800e362a3aca86d769d02e137a8fa7
xfs: simplify xfs_map_at_offset

Move the buffer locking into the callers as they need to do it
wether they call xfs_map_at_offset or not.  Remove the b_bdev
assignment, which is already done by get_blocks.  Remove the
duplicate extent type asserts in xfs_convert_page just before
calling xfs_map_at_offset.

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