sys/vfs/hammer2: Simplify chain allocation in hammer2_chain_alloc()
authorTomohiro Kusumi <tkusumi@netbsd.org>
Wed, 14 Oct 2020 15:30:20 +0000 (00:30 +0900)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Wed, 14 Oct 2020 20:14:41 +0000 (05:14 +0900)
commit428dc73dec68fbb23a2d18e7a7ef1048287709a6
tree24c06547b2550c7df67258288ee9e84f56bc5943
parent1eb191916a9c173298fee44be2eb434d63ac70e3
sys/vfs/hammer2: Simplify chain allocation in hammer2_chain_alloc()

This initially had different behavior depending on blockref type,
but today all it does is allocate a chain, so just test invalid empty
blockref case for empty blockref slot and then allocate.
sys/vfs/hammer2/hammer2_chain.c