@@ -270,7 +270,7 @@ static void write_owner_info(void)
owner_list_head->size = BCH_MAX_OWNER_LIST;
WARN_ON(only_set->owner_list_used > owner_list_head->size);
- // in-memory owner maybe not contain alloced-pages.
+ /* in-memory owner maybe not contain alloced-pages. */
for (i = 0; i < only_set->owner_list_used; i++) {
owner_head = &owner_list_head->heads[i];
owner_list = only_set->owner_lists[i];
@@ -569,14 +569,14 @@ static int init_owner_info(struct bch_nvm_namespace *ns)
extent->nr = rec->nr;
WARN_ON(!is_power_of_2(extent->nr));
- /*init struct page: index/private */
+ /* init struct page: index/private */
order = ilog2(extent->nr);
page = nvm_vaddr_to_page(ns, extent->kaddr);
set_page_private(page, order);
page->index = rec->pgoff;
list_add_tail(&extent->list, &extents->extent_head);
- /*remove already alloced space*/
+ /* remove already alloced space */
remove_owner_space(extents->ns, rec->pgoff, rec->nr);
}
extents->nr += nvm_pgalloc_recs->used;
Make nvm-pages.c follow code comments style of other bcache code. Signed-off-by: Coly Li <colyli@suse.de> --- drivers/md/bcache/nvm-pages.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)