Re: [resend v1 1/5] block/genhd: Notify udev about capacity change

From: hch@xxxxxx
Date: Wed Jan 08 2020 - 10:02:49 EST


On Fri, Jan 03, 2020 at 06:16:39AM +0000, Chaitanya Kulkarni wrote:
> Since disk_set_capacity(() is on the same line as set_capacity()
> we should follow the same convention, which is :-
>
> 1. Avoid exporting symbol.
> 2. Mark new function in-line.
>
> Unless there is a very specific reason for breaking the pattern.

Why would we mark it as inline? It isn't by any means in the fast
path, and there are no easy opportunities for constant propagation,
so the only thing that would do is increase the code size.