From: Liu Yuan <[email protected]> We only need set CREATE bit in dirty_tree_and_list_insert() once.
Signed-off-by: Liu Yuan <[email protected]> --- sheep/object_cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sheep/object_cache.c b/sheep/object_cache.c index ddf2a1d..bb14fb8 100644 --- a/sheep/object_cache.c +++ b/sheep/object_cache.c @@ -254,8 +254,6 @@ dirty_tree_and_list_insert(struct object_cache *oc, uint32_t idx, else { /* already has this entry, merge bmap */ entry->bmap |= bmap; - if (create) - entry->idx |= CACHE_CREATE_BIT; return entry; } } -- 1.7.10.2 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
