xfs: remove the nr_extents argument to xfs_iext_insert
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Nov 2017 17:34:46 +0000 (10:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Nov 2017 19:53:41 +0000 (11:53 -0800)
commit0254c2f253d6fe11ea2ce5046ed6acfddbe4ee17
treefd4aa8d9631e9a149e3b535893c8ab9b2486f053
parent6bdcf26ade8825ffcdc692338e715cd7ed0820d8
xfs: remove the nr_extents argument to xfs_iext_insert

We only have two places that insert 2 extents at the same time, so unroll
the loop there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_iext_tree.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h