[lkml]   [2015]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 12/49] writeback: move backing_dev_info->bdi_stat[] into bdi_writeback
On Tue, Apr 21, 2015 at 10:51:19AM +0200, Jan Kara wrote:
> I can easily understand what "initializing writeback structure" means but
> "exiting writeback structure" doesn't really make sense to me. OTOH
> "destroying writeback structure" does make sense to me. That's the only
> reason.

We have enough cases where "exit" is used that way starting with
module_exit() and all the accompanying __exit annotations and there
are quite a few others. I think it's enough to establish "exit" as
the counterpart of "init" but I do agree that it felt a bit alien to
me at the beginning too.

In general, I've been sticking with create/destroy if the object
itself is being created or destroyed and init/exit if the object
itself stays put across init/exit which is the case here. This isn't
quite universal but I think there exists enough of a pattern to make
it worthwhile to stick to it. As such, I'd like to stick to the
current names if it isn't a big deal.



 \ /
  Last update: 2015-04-21 17:41    [W:0.095 / U:2.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site