]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add a xfs_valid_startblock helper
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Sep 2019 15:13:13 +0000 (08:13 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Sep 2019 15:13:13 +0000 (08:13 -0700)
commit44dbc205542654a593d637a0f76c43af9bb3aee4
tree68d315c1ce1e57593275eeb6b19871a4aaf7a32a
parent216af720f479ccb533853d2f9619e764105a9100
xfs: add a xfs_valid_startblock helper

Add a helper that validates the startblock is valid.  This checks for a
non-zero block on the main device, but skips that check for blocks on
the realtime device.

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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_iomap.c