提交 35e62da5 编写于 作者: C Christoph Hellwig 提交者: Darrick J. Wong

xfs: make better use of the 'state' variable in xfs_bmap_del_extent_real

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: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 060ea65b
...@@ -5033,8 +5033,7 @@ xfs_bmap_del_extent_real( ...@@ -5033,8 +5033,7 @@ xfs_bmap_del_extent_real(
* Matches the whole extent. Delete the entry. * Matches the whole extent. Delete the entry.
*/ */
trace_xfs_bmap_pre_update(ip, *idx, state, _THIS_IP_); trace_xfs_bmap_pre_update(ip, *idx, state, _THIS_IP_);
xfs_iext_remove(ip, *idx, 1, xfs_iext_remove(ip, *idx, 1, state);
whichfork == XFS_ATTR_FORK ? BMAP_ATTRFORK : 0);
--*idx; --*idx;
XFS_IFORK_NEXT_SET(ip, whichfork, XFS_IFORK_NEXT_SET(ip, whichfork,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册