mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-09 05:02:35 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user