lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 07/10] zram: report every added and removed device
On (04/23/15 11:38), Minchan Kim wrote:
> > +
> > + pr_info("Removed device: %s\n", zram->disk->disk_name);
>
> trivial:
>
> why did you add the info in the middle of logic functions?
> Without special reason, let's add it top of the zram_remove.
>

ok.

-ss

> Acked-by: Minchan Kim <minchan@kernel.org>
>
> > del_gendisk(zram->disk);
> > put_disk(zram->disk);
> > kfree(zram);
> > @@ -1281,7 +1285,6 @@ static void destroy_devices(void)
> > idr_for_each(&zram_index_idr, &zram_exit_cb, NULL);
> > idr_destroy(&zram_index_idr);
> > unregister_blkdev(zram_major, "zram");
> > - pr_info("Destroyed device(s)\n");
> > }
> >
> > static int __init zram_init(void)
> > @@ -1300,7 +1303,6 @@ static int __init zram_init(void)
> > goto out_error;
> > }
> >
> > - pr_info("Created %u device(s)\n", num_devices);
> > return 0;
> >
> > out_error:
> > --
> > 2.4.0.rc2
> >
>
> --
> Kind regards,
> Minchan Kim
>


\
 
 \ /
  Last update: 2015-04-23 07:01    [W:2.488 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site