diff options
author | Christoph Hellwig <hch@lst.de> | 2017-11-03 20:34:46 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-11-06 22:53:41 +0300 |
commit | 0254c2f253d6fe11ea2ce5046ed6acfddbe4ee17 (patch) | |
tree | fd4aa8d9631e9a149e3b535893c8ab9b2486f053 /fs/xfs/libxfs/xfs_inode_fork.c | |
parent | 6bdcf26ade8825ffcdc692338e715cd7ed0820d8 (diff) | |
download | linux-0254c2f253d6fe11ea2ce5046ed6acfddbe4ee17.tar.xz |
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_fork.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_inode_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_inode_fork.c b/fs/xfs/libxfs/xfs_inode_fork.c index 20110a25150b..af31d5826c32 100644 --- a/fs/xfs/libxfs/xfs_inode_fork.c +++ b/fs/xfs/libxfs/xfs_inode_fork.c @@ -362,7 +362,7 @@ xfs_iformat_extents( } xfs_bmbt_disk_get_all(dp, &new); - xfs_iext_insert(ip, &icur, 1, &new, state); + xfs_iext_insert(ip, &icur, &new, state); trace_xfs_read_extent(ip, &icur, state, _THIS_IP_); xfs_iext_next(ifp, &icur); } |