From 6d716389dd3b8320da41db4341ee390e226083b2 Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Mon, 22 Sep 2014 14:28:16 -0400 Subject: [PATCH] dm dedup cbt: use __dm_bless_for_disk before dm_btree_insert --- drivers/md/dm-dedup-cbt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/dm-dedup-cbt.c b/drivers/md/dm-dedup-cbt.c index 9b86e8919a0..5808a01da38 100644 --- a/drivers/md/dm-dedup-cbt.c +++ b/drivers/md/dm-dedup-cbt.c @@ -473,6 +473,7 @@ static int kvs_insert_linear_cowbtree(struct kvstore *kvs, void *key, if (vsize != kvs->vsize) return -EINVAL; + __dm_bless_for_disk(value); return dm_btree_insert_notify(&(kvcbt->info), kvcbt->root, key, value, &(kvcbt->root), &inserted); @@ -661,6 +662,7 @@ repeat: if (r == -ENODATA) { memcpy(entry, key, ksize); memcpy(entry + ksize, value, vsize); + __dm_bless_for_disk(&key_val); r = dm_btree_insert(&(kvcbt->info), kvcbt->root, &key_val, entry, &(kvcbt->root)); kfree(entry); -- 2.43.0