]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf60fd6df2e2cd8761c1be675415a367a0bee44c
tree644ec23fd88da343a16e6272bd64d0d6d27ec2a6
parent46f619965d3d7469d9d91dddd346f84b9053edcd
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