Re: [RFC PATCH 5/8] bcache: nvm_free_pages() of the buddy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux