]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit137ceabb749dc5f03002718cf4a58bb23cb97c72
tree44247daa7fa4c79330e65ca7281e487f4dbda0bf
parent41ddd326101d87a28d4f825f0364ba0ffa9093ce
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