]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: simplify mappedbno handling in xfs_da_{get,read}_buf
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)
commit59ab37488b79eace1d7fa0fc8583a3c865f7ba05
tree0f8b7363c94416eac6953981f2dc47f75bdab68b
parentcef0cc3b0f67ecf2ed228a62e01ea9a055079933
xfs: simplify mappedbno handling in xfs_da_{get,read}_buf

Source kernel commit: fa0d44ec7faab82da468aa7ab4f0c2614cadf7e7

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