scoutfs: deletion items maintain counts

When we turned existing items into deletion items we'd remove their
values.  But we didn't update the count of dirty values to reflect that
removal so the dirty value count would slowly grow without bound.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-05-23 12:12:30 -07:00
parent 5f11cdbfe5
commit 297b859577
+1
View File
@@ -354,6 +354,7 @@ static void become_deletion_item(struct super_block *sb,
struct cached_item *item,
struct kvec *del_val)
{
clear_item_dirty(cac, item);
scoutfs_kvec_clone(del_val, item->val);
scoutfs_kvec_init_null(item->val);
item->deletion = 1;