]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: simplify the xfs_bmap_btree_to_extents calling conventions
authorChristoph Hellwig <hch@lst.de>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:28 +0000 (18:00 -0400)
commit939ebc1a5a81dfa007303e9f101cf502bf4c0d50
treee61fead653090603d6f73825400ae9e83bd968c0
parent4c7161ceccf8430e3cfc2f800d65722af96e5f22
xfs: simplify the xfs_bmap_btree_to_extents calling conventions

Source kernel commit: b101e3342a34404f2cc2daaad569afcae68452b0

Move boilerplate code from the callers into xfs_bmap_btree_to_extents:

- exit early without failure if we don't need to convert to the
extent format
- assert that we have a btree cursor
- don't reinitialize the passed in logflags argument

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
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_bmap.c