[sheepdog] [PATCH v2] obj list cache: add a buffer to object list cache as a second level cache

Liu Yuan namei.unix at gmail.com
Wed May 23 13:10:55 CEST 2012


On 05/23/2012 03:47 PM, levin li wrote:

> It's inefficient for get_obj_list() to traverse the object
> list rbtree to get the object list every time, so I add a buffer
> to cache the list, every time in get_obj_list() if the rbtree
> has changed which is detected by the version number, we update
> the buffer, then we can just read the buffer by memcpy() if the
> object list has not been changed, instead of traverse the full
> rbtree.


Applied, thanks.

Yuan



More information about the sheepdog mailing list