On 12/3/20 6:53 PM, Qiaowei Ren wrote: > This patch implements the nvm_free_pages() of the buddy. > > Signed-off-by: Jianpeng Ma <jianpeng.ma@xxxxxxxxx> > Signed-off-by: Qiaowei Ren <qiaowei.ren@xxxxxxxxx> > --- > drivers/md/bcache/nvm-pages.c | 142 ++++++++++++++++++++++++++++++++++ > drivers/md/bcache/nvm-pages.h | 2 + > 2 files changed, 144 insertions(+) > [snipped] > diff --git a/drivers/md/bcache/nvm-pages.h b/drivers/md/bcache/nvm-pages.h > index 95b7fa4b7dd0..1e435ce0ddf4 100644 > --- a/drivers/md/bcache/nvm-pages.h > +++ b/drivers/md/bcache/nvm-pages.h > @@ -78,6 +78,7 @@ extern int bch_nvm_init(void); > extern void bch_nvm_exit(void); > > extern void *nvm_alloc_pages(int order, const char *owner_uuid); > +extern void nvm_free_pages(void *addr, int order, const char *owner_uuid); We should have a bch_ prefix for the above function, and maybe "extern" can be removed here. > > #else > > @@ -92,6 +93,7 @@ static inline int bch_nvm_init(void) > static inline void bch_nvm_exit(void) { } > > static inline void *nvm_alloc_pages(int order, const char *owner_uuid) { } > +static inline void nvm_free_pages(void *addr, int order, const char *owner_uuid) { } > > #endif /* CONFIG_BCACHE_NVM_PAGES */ > > Thanks. Coly Li