aboutsummaryrefslogtreecommitdiff
path: root/kernel/fs/s5fs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/s5fs')
-rw-r--r--kernel/fs/s5fs/s5fs_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fs/s5fs/s5fs_subr.c b/kernel/fs/s5fs/s5fs_subr.c
index 33b03c9..27b6a92 100644
--- a/kernel/fs/s5fs/s5fs_subr.c
+++ b/kernel/fs/s5fs/s5fs_subr.c
@@ -268,6 +268,9 @@ static void s5_free_block(s5fs_t *s5fs, blocknum_t blockno)
else
{
s->s5s_free_blocks[s->s5s_nfree++] = blockno;
+ // only delete in this case b/c in first case we're still using that
+ // block as a "meta" block, just to store free block numbers
+ mobj_delete_pframe(&s5fs->s5f_mobj, blockno);
}
s5_unlock_super(s5fs);
}