Skip to content

block: simplify with PAGE_SECTORS_SHIFT

Luis Chamberlain dm-devel drbd-dev linux-block linux-fsdevel linux-mm linux-patches linux-xfs lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v25 patches 8 repliesSuperseded
  3. v15 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drbd: use PAGE_SECTORS_SHIFT and PAGE_SECTORSdrivers/block/drbd/drbd_bitmap.c+2 -20 replies
2/4iomap: simplify iomap_init() with PAGE_SECTORSfs/iomap/buffered-io.c+1 -11 reply
3/4dm bufio: simplify by using PAGE_SECTORS_SHIFTdrivers/md/dm-bufio.c+2 -21 reply
4/4zram: use generic PAGE_SECTORS and PAGE_SECTORS_SHIFTdrivers/block/zram/zram_drv.c drivers/block/zram/zram_drv.h+6 -111 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchChristoph BöhmwalderJohannes ThumshirnChristoph HellwigSergey Senozhatsky
1/4A-b R-b
2/4R-b R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] block: simplify with PAGE_SECTORS_SHIFT

Just spinning these low hanging fruit patches I forgot about.

Changes on v3:

o Add tags for Reviews/acks
o rebase onto next-20230914
o Fixes as suggested by Johannes Thumshirn:
- drop not-needed parens on dm bufio
- use SECTOR_MASK instead of PAGE_SECTORS - 1 for the zram driver
o Drop shmem patches as they are already merged / modified

Changes on v2:

o keep iomap math visibly simple
o Add tags for Reviews/acks
o rebase onto next-20230525

Luis Chamberlain (4):
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

 drivers/block/drbd/drbd_bitmap.c |  4 ++--
 drivers/block/zram/zram_drv.c    | 15 ++++++---------
 drivers/block/zram/zram_drv.h    |  2 --
 drivers/md/dm-bufio.c            |  4 ++--
 fs/iomap/buffered-io.c           |  2 +-
 5 files changed, 11 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.2