From 297b859577276220e92deb030c6fe14a0c24d95f Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 23 May 2017 11:45:56 -0700 Subject: [PATCH] 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 --- kmod/src/item.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kmod/src/item.c b/kmod/src/item.c index 071942e8..4acf1abd 100644 --- a/kmod/src/item.c +++ b/kmod/src/item.c @@ -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;