On Thu, Jul 11, 2013 at 10:29:23PM -0400, sheng qiu wrote: > sure, in your btree.c code, when you do btree gc, you update the > bucket's used sectors by min(unsigned, GC_SECTORS_USED(b)+key_size(), > 1<<14-1). this might get you larger than the bucket size. since the > newly allocated bucket is set to bucket size already. so each round > you will accumulate the key_size(). i print the information at that > point, and see GC_SECTORS_USED > bucket size. Hey, I think you're right - btree_gc_start() is supposed to be zeroing out GC_SECTORS_USED() (the same place it does SET_GC_MARK(b, GC_MARK_RECLAIMABLE)) - but that's missing. Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html