diff options
author | Christoph Hellwig <hch@lst.de> | 2019-02-15 08:02:47 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-17 11:55:53 -0800 |
commit | b101e3342a34404f2cc2daaad569afcae68452b0 (patch) | |
tree | 0c678b7ff654fa21298881ccca2f5742ddfe77ae /lib/memweight.c | |
parent | b4e29032f254fed39ef2251807322f36c3ede1aa (diff) | |
download | linux-b101e3342a34404f2cc2daaad569afcae68452b0.tar.gz linux-b101e3342a34404f2cc2daaad569afcae68452b0.tar.bz2 linux-b101e3342a34404f2cc2daaad569afcae68452b0.zip |
xfs: simplify the xfs_bmap_btree_to_extents calling conventions
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>
Diffstat (limited to 'lib/memweight.c')
0 files changed, 0 insertions, 0 deletions