xfs: make better use of the 'state' variable in xfs_bmap_del_extent_real
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 18:04:43 +0000 (11:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:26 +0000 (15:38 -0700)
We already have all the information about the fork a=D1=95 well as additional
tracing information, so pass that to xfs_iext_remove().

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

index 070b078c3494074fbae2235cf6fcf027ad66f4a9..e4335ecd0f36e21ab977fb2bf10e9752cdfc9a91 100644 (file)
@@ -5033,8 +5033,7 @@ xfs_bmap_del_extent_real(
                 * Matches the whole extent.  Delete the entry.
                 */
                trace_xfs_bmap_pre_update(ip, *idx, state, _THIS_IP_);
-               xfs_iext_remove(ip, *idx, 1,
-                               whichfork == XFS_ATTR_FORK ? BMAP_ATTRFORK : 0);
+               xfs_iext_remove(ip, *idx, 1, state);
                --*idx;
 
                XFS_IFORK_NEXT_SET(ip, whichfork,