[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c156b1e4-8a8e-e296-05f4-0ffd75903380@wdc.com>
Date: Fri, 26 May 2023 09:26:48 +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 0/5] block: simplify with PAGE_SECTORS_SHIFT
On 26.05.23 09:33, Luis Chamberlain wrote:
> A bit of block drivers have their own incantations with
> PAGE_SHIFT - SECTOR_SHIFT. Just simplfy and use PAGE_SECTORS_SHIFT
> all over.
>
> Based on linux-next next-20230525.
>
> Changes since v1:
>
> o keep iomap math visibly simple
> o Add tags for Reviews/acks
> o rebase onto next-20230525
>
> Luis Chamberlain (5):
> block: annotate bdev_disk_changed() deprecation with a symbol
> namespace
> drbd: use PAGE_SECTORS_SHIFT and PAGE_SECTORS
> iomap: simplify iomap_init() with PAGE_SECTORS
> dm bufio: simplify by using PAGE_SECTORS_SHIFT
> zram: use generic PAGE_SECTORS and PAGE_SECTORS_SHIFT
>
> block/partitions/core.c | 6 +-----
> drivers/block/drbd/drbd_bitmap.c | 4 ++--
> drivers/block/loop.c | 2 ++
> drivers/block/zram/zram_drv.c | 12 ++++++------
> drivers/block/zram/zram_drv.h | 2 --
> drivers/md/dm-bufio.c | 4 ++--
> drivers/s390/block/dasd_genhd.c | 2 ++
> fs/iomap/buffered-io.c | 2 +-
> 8 files changed, 16 insertions(+), 18 deletions(-)
>
Hey Luis,
I've found another one in sd_zbc_revalidate_zones():
max_append = min_t(u32, logical_to_sectors(sdkp->device, zone_blocks),
q->limits.max_segments << (PAGE_SHIFT - 9));
Mind taking care of it in the next round as well?
Thanks,
Johannes
Powered by blists - more mailing lists