mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
xfs: trivial xfs_btree_del_cursor cleanups
The error argument to xfs_btree_del_cursor already understands the "nonzero for error" semantics, so remove pointless error testing in the callers and pass it directly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
81b549aa62
commit
0b04b6b875
12 changed files with 23 additions and 46 deletions
|
@ -162,7 +162,7 @@ xfs_reflink_find_shared(
|
|||
error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen,
|
||||
find_end_of_shared);
|
||||
|
||||
xfs_btree_del_cursor(cur, error ? XFS_BTREE_ERROR : XFS_BTREE_NOERROR);
|
||||
xfs_btree_del_cursor(cur, error);
|
||||
|
||||
xfs_trans_brelse(tp, agbp);
|
||||
return error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue