]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: improve the xfs_dabuf_map calling conventions
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jan 2020 16:29:45 +0000 (11:29 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 22 Jan 2020 16:29:45 +0000 (11:29 -0500)
commit48d1399bae2eae81854d3c75fea968f16bb19205
tree8527a7dea60da87f4796382967ee04a81d6d2daa
parent571973e8664af394c6ed064a546fe067cf809340
xfs: improve the xfs_dabuf_map calling conventions

Source kernel commit: 199e9ba4e4a9927f5addb644c1a1e1002e68cc30

Use a flags argument with the XFS_DABUF_MAP_HOLE_OK flag to signal that
a hole is okay and not corruption, and return 0 with *nmap set to 0 to
signal that case in the return value instead of a nameless -1 return
code.

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_da_btree.c
libxfs/xfs_da_btree.h