From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C14C4122; Thu, 7 Dec 2023 09:44:30 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 74937227A87; Thu, 7 Dec 2023 18:44:27 +0100 (CET) Date: Thu, 7 Dec 2023 18:44:27 +0100 From: Christoph Hellwig To: Bart Van Assche Cc: "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , Daejun Park , Kanchan Joshi , Alexander Viro , Christian Brauner , Jan Kara Subject: Re: [PATCH v5 02/17] fs: Move enum rw_hint into a new header file Message-ID: <20231207174427.GB31184@lst.de> References: <20231130013322.175290-1-bvanassche@acm.org> <20231130013322.175290-3-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130013322.175290-3-bvanassche@acm.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Nov 29, 2023 at 05:33:07PM -0800, Bart Van Assche wrote: > Move enum rw_hint into a new header file to prepare for using this data > type in the block layer. Add the attribute __packed to reduce the space > occupied by instances of this data type from four bytes to one byte. > Change the data type of i_write_hint from u8 into enum rw_hint. Change > the RWH_* constants into literal constants to prevent that > would have to be included. If we split the definitions we need a conversion function. That might just have a bunch of BUILD_BUG_ON/static_asserts to check the values are the same and otherwise do nothing, but we can't really be sloppy here.