OSDN Git Service

xfs: simplify mappedbno handling in xfs_da_{get,read}_buf
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Nov 2019 17:46:00 +0000 (09:46 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Nov 2019 16:17:09 +0000 (08:17 -0800)
commitfa0d44ec7faab82da468aa7ab4f0c2614cadf7e7
treec0d0a83ce0d13e87b431e1fa66506f21a9a17c49
parent6519f708cc355c4834edbe1885c8542c0e7ef907
xfs: simplify mappedbno handling in xfs_da_{get,read}_buf

Shortcut the creation of xfs_bmbt_irec and xfs_buf_map for the case
where the callers passed an already mapped xfs_daddr_t.  This is in
preparation for splitting these cases out entirely later.  Also reject
the mappedbno case for xfs_da_reada_buf as no callers currently uses
it and it will be removed soon.

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_da_btree.c