From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kent Overstreet Subject: Re: reverse link from bucket to keys Date: Tue, 23 Jul 2013 12:46:24 -0700 Message-ID: <20130723194624.GA22312@kmo-pixel> References: <20130712021057.GA30223@kmo-pixel> <20130712022551.GB30223@kmo-pixel> <20130712024125.GC30223@kmo-pixel> <20130716205934.GB27000@kmo-pixel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: sheng qiu Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-bcache@vger.kernel.org On Wed, Jul 17, 2013 at 06:28:40PM -0400, sheng qiu wrote: > Hi Kent, > > Thanks for you previous reply. I know bcache does not care write hit, > but is there a easy way to check write hit for write request? > If i reuse the search_recurse() as what you do for read request, will > it has any impact? Well, the question would be where you would track it - for read hits, we're tracking by bucket on the cache device, not by lba on the backing device. But since writes are always COW - they're always going to a new bucket - tracking write hits by bucket wouldn't really make sense. What are you trying to do?