]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: return a failure address from xfs_rmap_irec_offset_unpack
authorDarrick J. Wong <djwong@kernel.org>
Wed, 31 May 2023 08:58:13 +0000 (10:58 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 9 Jun 2023 08:27:50 +0000 (10:27 +0200)
commit8d444a7a7dc866137e574e34c25febbd270121e8
treea79e0f148e576e9278b2ce6193f28fa8ba0974c9
parent03d1a871946af6c3db5017bedb485e2e7db1f085
xfs: return a failure address from xfs_rmap_irec_offset_unpack

Source kernel commit: 39ab26d59f039c6190bbaa8118a8f0ffed84492a

Currently, xfs_rmap_irec_offset_unpack returns only 0 or -EFSCORRUPTED.
Change this function to return the code address of a failed conversion
in preparation for the next patch, which standardizes localized record
checking and reporting code.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
include/platform_defs.h.in
libxfs/libxfs_priv.h
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h