diff mbox series

block: Fix function name in comment

Message ID 20190502194811.200677-1-rrangel@chromium.org (mailing list archive)
State New, archived
Headers show
Series block: Fix function name in comment | expand

Commit Message

Raul Rangel May 2, 2019, 7:48 p.m. UTC
The comment was out of date.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
---

 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bart Van Assche May 2, 2019, 8:33 p.m. UTC | #1
On Thu, 2019-05-02 at 13:48 -0600, Raul E Rangel wrote:
> The comment was out of date.
> 
> Signed-off-by: Raul E Rangel <rrangel@chromium.org>
> ---
> 
>  block/blk-mq.c | 2 +
>  1 file changed, 1 insertion(), 1 deletion(-)
> 
> diff --git a/block/blk-mq.c b/block/blk-mq.c
> index 9516304a38ee..0e467ff440a2 100644
> --- a/block/blk-mq.c
> diff --git a/block/blk-mq.c b/block/blk-mq.c
> index 9516304a38ee..0e467ff440a2 100644
> --- a/block/blk-mq.c
> +++ b/block/blk-mq.c
> @@ -2062,7 +2062,7 @@ void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
>                 list_del_init(&page->lru);
>                 /*
>                  * Remove kmemleak object previously allocated in
> -                * blk_mq_init_rq_map().
> +                * blk_mq_alloc_rqs().
>                  */
>                 kmemleak_free(page_address(page));
>                 __free_pages(page, page->private);

Does the entire comment fit on a single 80 column line? In other words, can
the comment that is spread over four lines be reduced to a single line?

Thanks,

Bart.
Raul Rangel May 2, 2019, 8:51 p.m. UTC | #2
On Thu, May 02, 2019 at 01:33:45PM -0700, Bart Van Assche wrote:
> On Thu, 2019-05-02 at 13:48 -0600, Raul E Rangel wrote:
> > The comment was out of date.
> > 
> > Signed-off-by: Raul E Rangel <rrangel@chromium.org>
> > ---
> > 
> >  block/blk-mq.c | 2 +
> >  1 file changed, 1 insertion(), 1 deletion(-)
> > 
> > diff --git a/block/blk-mq.c b/block/blk-mq.c
> > index 9516304a38ee..0e467ff440a2 100644
> > --- a/block/blk-mq.c
> > diff --git a/block/blk-mq.c b/block/blk-mq.c
> > index 9516304a38ee..0e467ff440a2 100644
> > --- a/block/blk-mq.c
> > +++ b/block/blk-mq.c
> > @@ -2062,7 +2062,7 @@ void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
> >                 list_del_init(&page->lru);
> >                 /*
> >                  * Remove kmemleak object previously allocated in
> > -                * blk_mq_init_rq_map().
> > +                * blk_mq_alloc_rqs().
> >                  */
> >                 kmemleak_free(page_address(page));
> >                 __free_pages(page, page->private);
> 
> Does the entire comment fit on a single 80 column line? In other words, can
> the comment that is spread over four lines be reduced to a single line?
No, it would put it at 91 characters long.

Raul
> 
> Thanks,
> 
> Bart.
Bart Van Assche May 2, 2019, 8:56 p.m. UTC | #3
On Thu, 2019-05-02 at 14:51 -0600, Raul Rangel wrote:
> On Thu, May 02, 2019 at 01:33:45PM -0700, Bart Van Assche wrote:
> > On Thu, 2019-05-02 at 13:48 -0600, Raul E Rangel wrote:
> > > The comment was out of date.
> > > 
> > > Signed-off-by: Raul E Rangel <rrangel@chromium.org>
> > > ---
> > > 
> > >  block/blk-mq.c | 2 +
> > >  1 file changed, 1 insertion(), 1 deletion(-)
> > > 
> > > diff --git a/block/blk-mq.c b/block/blk-mq.c
> > > index 9516304a38ee..0e467ff440a2 100644
> > > --- a/block/blk-mq.c
> > > diff --git a/block/blk-mq.c b/block/blk-mq.c
> > > index 9516304a38ee..0e467ff440a2 100644
> > > --- a/block/blk-mq.c
> > > +++ b/block/blk-mq.c
> > > @@ -2062,7 +2062,7 @@ void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
> > >                 list_del_init(&page->lru);
> > >                 /*
> > >                  * Remove kmemleak object previously allocated in
> > > -                * blk_mq_init_rq_map().
> > > +                * blk_mq_alloc_rqs().
> > >                  */
> > >                 kmemleak_free(page_address(page));
> > >                 __free_pages(page, page->private);
> > 
> > Does the entire comment fit on a single 80 column line? In other words, can
> > the comment that is spread over four lines be reduced to a single line?
> 
> No, it would put it at 91 characters long.

That's unfortunate ...
Bart Van Assche May 2, 2019, 8:58 p.m. UTC | #4
On Thu, 2019-05-02 at 13:48 -0600, Raul E Rangel wrote:
> The comment was out of date.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Jens Axboe May 2, 2019, 9:54 p.m. UTC | #5
On 5/2/19 1:48 PM, Raul E Rangel wrote:
> The comment was out of date.

Applied, thanks.
diff mbox series

Patch

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 9516304a38ee..0e467ff440a2 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2062,7 +2062,7 @@  void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,
 		list_del_init(&page->lru);
 		/*
 		 * Remove kmemleak object previously allocated in
-		 * blk_mq_init_rq_map().
+		 * blk_mq_alloc_rqs().
 		 */
 		kmemleak_free(page_address(page));
 		__free_pages(page, page->private);