This looks sensible: Reviewed-by: Christoph Hellwig <hch@xxxxxx> For a while I've been wondering if we can find some good way to take care of conversion to btree or extent format automatically without all that boilerplate code, but I haven't come up with a good idea yet.