scoutfs: invalidate stale bloom blocks

We need to invalidate old stale blocks we encounter when reading old
bloom block references written by other nodes.  This is the same
consistency mechanism used by btree blocks.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-03-04 14:20:40 -08:00
committed by Zach Brown
parent 65724c6724
commit ac3466921a

View File

@@ -260,6 +260,7 @@ static struct scoutfs_block *read_bloom_ref(struct super_block *sb,
if (!scoutfs_block_consistent_ref(sb, bl, ref->seq, ref->blkno,
SCOUTFS_BLOCK_MAGIC_BLOOM)) {
scoutfs_block_invalidate(sb, bl);
scoutfs_block_put(sb, bl);
return ERR_PTR(-ESTALE);
}