[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <597dab55-737f-73f1-3505-1e0c59d52d80@wdc.com>
Date: Fri, 26 May 2023 09:24:14 +0000
From: Johannes Thumshirn <Johannes.Thumshirn@....com>
To: Luis Chamberlain <mcgrof@...nel.org>,
"axboe@...nel.dk" <axboe@...nel.dk>,
"agk@...hat.com" <agk@...hat.com>,
"snitzer@...nel.org" <snitzer@...nel.org>,
"philipp.reisner@...bit.com" <philipp.reisner@...bit.com>,
"lars.ellenberg@...bit.com" <lars.ellenberg@...bit.com>,
"christoph.boehmwalder@...bit.com" <christoph.boehmwalder@...bit.com>,
"hch@...radead.org" <hch@...radead.org>,
"djwong@...nel.org" <djwong@...nel.org>,
"minchan@...nel.org" <minchan@...nel.org>,
"senozhatsky@...omium.org" <senozhatsky@...omium.org>
CC: "patches@...ts.linux.dev" <patches@...ts.linux.dev>,
"linux-block@...r.kernel.org" <linux-block@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-xfs@...r.kernel.org" <linux-xfs@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"dm-devel@...hat.com" <dm-devel@...hat.com>,
"drbd-dev@...ts.linbit.com" <drbd-dev@...ts.linbit.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"willy@...radead.org" <willy@...radead.org>,
"hare@...e.de" <hare@...e.de>,
"p.raghav@...sung.com" <p.raghav@...sung.com>,
"da.gomez@...sung.com" <da.gomez@...sung.com>,
"rohan.puri@...sung.com" <rohan.puri@...sung.com>,
"rpuri.linux@...il.com" <rpuri.linux@...il.com>,
"kbusch@...nel.org" <kbusch@...nel.org>
Subject: Re: [PATCH v2 5/5] zram: use generic PAGE_SECTORS and
PAGE_SECTORS_SHIFT
On 26.05.23 09:34, Luis Chamberlain wrote:
> + u32 index = bio->bi_iter.bi_sector >> PAGE_SECTORS_SHIFT;
> + u32 offset = (bio->bi_iter.bi_sector & (PAGE_SECTORS - 1)) <<
> SECTOR_SHIFT;
(PAGE_SECTORS - 1) is SECTOR_MASK, please use this.
Thanks,
Johannes
Powered by blists - more mailing lists