All of lore.kernel.org
 help / color / mirror / Atom feed
From: Coly Li <colyli@suse.de>
To: linux-bcache@vger.kernel.org
Cc: linux-block@vger.kernel.org, Coly Li <colyli@suse.de>
Subject: [PATCH 3/4] bcache: unify code comments style in nvm-pages.c
Date: Wed, 10 Feb 2021 21:56:56 +0800	[thread overview]
Message-ID: <20210210135657.35284-3-colyli@suse.de> (raw)
In-Reply-To: <20210210135657.35284-1-colyli@suse.de>

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(-)

diff --git a/drivers/md/bcache/nvm-pages.c b/drivers/md/bcache/nvm-pages.c
index 8be761467d8f..3ea27ea3dd54 100644
--- a/drivers/md/bcache/nvm-pages.c
+++ b/drivers/md/bcache/nvm-pages.c
@@ -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;
-- 
2.26.2


  parent reply	other threads:[~2021-02-10 13:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10 13:56 [PATCH 1/4] bcache: correct return value in register_nvdimm_meta() Coly Li
2021-02-10 13:56 ` [PATCH 2/4] bcache: use div_u64() in init_owner_info() Coly Li
2021-02-10 19:50   ` Chaitanya Kulkarni
2021-02-10 13:56 ` Coly Li [this message]
2021-02-10 19:49   ` [PATCH 3/4] bcache: unify code comments style in nvm-pages.c Chaitanya Kulkarni
2021-02-10 13:56 ` [PATCH 4/4] bcache: fix a typo in nvme-pages.c Coly Li
2021-02-10 19:53   ` Chaitanya Kulkarni
2021-02-10 19:52 ` [PATCH 1/4] bcache: correct return value in register_nvdimm_meta() Chaitanya Kulkarni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210210135657.35284-3-colyli@suse.de \
    --to=colyli@suse.de \
    --cc=linux-bcache@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.