I'd move this out of the block_ckpt.c file (either delete it altogether, and leave all the work in block_mgr.c, or move it into block_open.c, if I had to pick, I'd just delete it and do the work in block_mgr.c).