xfs: simplify xfs_rtallocate_extent
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Feb 2017 16:21:06 +0000 (08:21 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 18 Feb 2017 00:52:52 +0000 (16:52 -0800)
commit089ec2f87578b9740f0c27bcea9cc6be59c1ddb0
tree44247daa7fa4c79330e65ca7281e487f4dbda0bf
parent410d17f67e583559be3a922f8b6cc336331893f3
xfs: simplify xfs_rtallocate_extent

We can deduce the allocation type from the bno argument, and do the
return without prod much simpler internally.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
[darrick: fix the macro for the non-rt build]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_rtalloc.c
fs/xfs/xfs_rtalloc.h