From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH v3] block: refactor duplicated macros Date: Tue, 10 Mar 2020 22:42:17 -0400 Message-ID: References: <20200311002254.121365-1-mcroce@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20200311002254.121365-1-mcroce@redhat.com> (Matteo Croce's message of "Wed, 11 Mar 2020 01:22:54 +0100") Sender: linux-mmc-owner@vger.kernel.org To: Matteo Croce Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mmc@vger.kernel.org, xen-devel@lists.xenproject.org, linux-scsi@vger.kernel.org, linux-nfs@vger.kernel.org, Jens Axboe , "James E.J. Bottomley" , Ulf Hansson , Anna Schumaker , Dan Williams , Song Liu , Guoqing Jiang List-Id: linux-bcache@vger.kernel.org Matteo, > The macros PAGE_SECTORS, PAGE_SECTORS_SHIFT and SECTOR_MASK are > defined several times in different flavours across the whole tree. > Define them just once in a common header. > > While at it, replace replace "PAGE_SHIFT - 9" with > "PAGE_SECTORS_SHIFT" too and rename SECTOR_MASK to PAGE_SECTORS_MASK. Looks OK to me. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering