[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871qhuzpxr.fsf@metaspace.dk>
Date: Thu, 29 Jun 2023 09:25:32 +0200
From: "Andreas Hindborg (Samsung)" <nmi@...aspace.dk>
To: Christoph Hellwig <hch@...radead.org>
Cc: Ming Lei <ming.lei@...hat.com>,
Hans Holmberg <Hans.Holmberg@....com>,
Aravind Ramesh <Aravind.Ramesh@....com>,
Jens Axboe <axboe@...nel.dk>,
"open list:BLOCK LAYER" <linux-block@...r.kernel.org>,
Matias Bjorling <Matias.Bjorling@....com>,
open list <linux-kernel@...r.kernel.org>,
Damien Le Moal <dlemoal@...nel.org>, gost.dev@...sung.com,
Minwoo Im <minwoo.im.dev@...il.com>
Subject: Re: [PATCH v4 3/4] ublk: enable zoned storage support
Christoph Hellwig <hch@...radead.org> writes:
> What's the point in having a separate file for about 100 lines of
> actual code? Especially as that needs a header, intefaces, etc?
This was suggested by Niklas [1] to make the conditionally compiled code
more readable. The alternative would be masking out the code with a big
`#ifdef`.
If you prefer the latter, I can change it back, no problem. But I must
say I think it comes off cleaner when we move as much as possible of the
zoned code to a separate translation unit.
[1] https://lore.kernel.org/all/Y%2Fy+UFEHn1F1sg4i@x1-carbon/
Powered by blists - more mailing lists