mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-24 17:12:51 +00:00
scoutfs_block_dirty_ref() only sets *ref_blkno on the path that allocates a new cow block. The early return paths leave it untouched, so a caller that reads it back gets whatever value was on the stack. This is harmless with the current callers. dirty_alloc_blocks() bails out before calling here when the blocks are already dirty, so the early return on an already-dirty block is never reached, and the error paths return a negative value that callers check before using ref_blkno. Signed-off-by: Auke Kok <auke.kok@versity.com>