Hi Kent, Thanks a lot for your reply. Then i have a question about the bucket invalidation. when bcache choose to replace a bucket, will the keys that reside on that bucket still be in the btree? since you do not have information about which keys reside on the bucket, how do you update the btree? i can think out two ways, one is you periodically scan the btree nodes and delete the stale nodes, the other way is when you get a cache hit on stale nodes, then you delete it at that moment. How bcache does this? Can you tell me the functions involve for these operations? i am interested in this part of codes. Thanks, Sheng On Sun, Jul 7, 2013 at 12:24 PM, Kent Overstreet <kmo@xxxxxxxxxxxxx> wrote: > On Sun, Jul 7, 2013 at 7:47 AM, sheng qiu <herbert1984106@xxxxxxxxx> wrote: >> Hi, >> >> i have some question about bcache codes. by first looking, seems we >> cannot know which keys are being stored in a specified bucket by >> giving the bucket information. >> >> is that true? > > Yep, that's true -- Sheng Qiu Texas A & M University Room 332B Wisenbaker email: herbert1984106@xxxxxxxxx College Station, TX 77843-3259 -- 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