xfs: move locking into xfs_bmap_punch_delalloc_range
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:25:57 +0000 (22:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:25:57 +0000 (22:25 -0700)
commitd43801775766972535a0f4b78af65d0c13055e36
treee9181467ed6c2c978d059cf40850caf1605c8318
parent036257213836e13f08d1b28e528ba99e4ed3fc68
xfs: move locking into xfs_bmap_punch_delalloc_range

Both callers want the same looking, so do it only once.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_iomap.c