aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_dir2_leaf.c
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-03-11 10:37:53 -0700
committerGravatar Darrick J. Wong <darrick.wong@oracle.com> 2020-03-12 07:58:12 -0700
commita71e4228e6f2a4fe6519d8ed081d0a164967fa31 (patch)
tree9890920a829b1f0fbb0e73d6d56734c63b17432f /fs/xfs/libxfs/xfs_dir2_leaf.c
parentxfs: fix use-after-free when aborting corrupt attr inactivation (diff)
downloadlinux-a71e4228e6f2a4fe6519d8ed081d0a164967fa31.tar.gz
linux-a71e4228e6f2a4fe6519d8ed081d0a164967fa31.tar.bz2
linux-a71e4228e6f2a4fe6519d8ed081d0a164967fa31.zip
xfs: fix xfs_rmap_has_other_keys usage of ECANCELED
In e7ee96dfb8c26, we converted all ITER_ABORT users to use ECANCELED instead, but we forgot to teach xfs_rmap_has_other_keys not to return that magic value to callers. Fix it now by using ECANCELED both to abort the iteration and to signal that we found another reverse mapping. This enables us to drop the separate boolean flag. Fixes: e7ee96dfb8c26 ("xfs: remove all *_ITER_ABORT values") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2_leaf.c')
0 files changed, 0 insertions, 0 deletions