commit | 199e9ba4e4a9927f5addb644c1a1e1002e68cc30 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Wed Nov 20 10:18:50 2019 -0800 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Fri Nov 22 08:17:09 2019 -0800 |
tree | c9597500a8e4ffb1c621395a4d9deef6a9bfa4e1 | |
parent | 45feef8f50b94d56d6a433ad5baf5cdf58e3db98 [diff] |
xfs: improve the xfs_dabuf_map calling conventions 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>