On 2018/8/3 7:27 PM, Wang Sheng-Hui wrote: > Hi Kent & Coly, > > I noticed 4 release functions declared and defined, but are not invoked. > And I didn't find out how them are connected with some closures. > > I wonder how they are invoked? Or invocation missed? > ------------------------------------------------------------ > void bch_cached_dev_release(struct kobject *); > void bch_flash_dev_release(struct kobject *); > void bch_cache_set_release(struct kobject *); > void bch_cache_release(struct kobject *); Hi Shenghui, Check where KTYPE() is referenced, you may have the answer :-) Thanks. Coly Li -- 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