Skip to content

More buffer_head cleanups

Matthew Wilcox (Oracle) linux-fsdevel linux-mm llvm oe-kbuild-all 2 versions – Applied

Status from this message: [merged mm-stable] buffer-fix-more-functions-for-block-size-page_size.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 17 repliesApplied 7/7
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Pick up R-b tags from Pankaj
- Use div_u64() instead of a raw divide. Thanks, i386.
- Add a patch for __block_write_begin_int(), spotted by Ryusuke Konishi
- That inspired the seventh patch which finally eliminates block_size_bits().

Patches in v2 All 7 applied

#Subject and filesSizeRepliesApplied
1/7buffer: Return bool from grow_dev_folio()fs/buffer.c+25 -253 repliesApplied
2/7buffer: Calculate block number inside folio_init_buffers()fs/buffer.c+6 -70 repliesApplied
3/7buffer: Fix grow_buffers() for block size > PAGE_SIZEfs/buffer.c+6 -116 repliesApplied
4/7buffer: Cast block to loff_t before shifting itfs/buffer.c+1 -10 repliesApplied
5/7buffer: Fix various functions for block size > PAGE_SIZEfs/buffer.c+5 -53 repliesApplied
6/7buffer: Handle large folios in __block_write_begin_int()fs/buffer.c+7 -100 repliesApplied
7/7buffer: Fix more functions for block size > PAGE_SIZEfs/buffer.c+6 -215 repliesApplied

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchPankaj Raghav
1/7
2/7R-b
3/7
4/7
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] More buffer_head cleanups

The first patch is a left-over from last cycle. The rest fix "obvious" block size > PAGE_SIZE problems. I haven't tested with a large block size setup (but I have done an ext4 xfstests run).

v2:
- Pick up R-b tags from Pankaj
- Use div_u64() instead of a raw divide. Thanks, i386.
- Add a patch for __block_write_begin_int(), spotted by Ryusuke Konishi
- That inspired the seventh patch which finally eliminates block_size_bits().

Matthew Wilcox (Oracle) (7):
buffer: Return bool from grow_dev_folio()
buffer: Calculate block number inside folio_init_buffers()
buffer: Fix grow_buffers() for block size > PAGE_SIZE
buffer: Cast block to loff_t before shifting it
buffer: Fix various functions for block size > PAGE_SIZE
buffer: Handle large folios in __block_write_begin_int()
buffer: Fix more functions for block size > PAGE_SIZE

 fs/buffer.c | 130 +++++++++++++++++++++-------------------------------
 1 file changed, 53 insertions(+), 77 deletions(-)
Signature · 1 line
2.42.0