Skip to content

fs: Provide function to unmap metadata for a range of blocks

Jan Kara linux-ext4 linux-fsdevel ocfs2-devel oe-lkp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Improved comment describing what the function does
* Renamed function
* Added wrapper for single block users and use it

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fs: Provide function to unmap metadata for a range of blocksfs/buffer.c include/linux/buffer_head.h+78 -00 replies
2/6direct-io: Use clean_bdev_aliases() instead of handmade iterationfs/direct-io.c+7 -210 replies
3/6ext4: Use clean_bdev_aliases() instead of iterationfs/ext4/extents.c fs/ext4/inode.c+6 -220 replies
4/6ext2: Use clean_bdev_aliases() instead of iterationfs/ext2/inode.c+3 -60 replies
5/6fs: Add helper to clean bdev aliases under a bh and use itfs/buffer.c fs/ext4/inode.c fs/ext4/page-io.c +7 more+16 -190 replies
6/6fs: Remove unmap_underlying_metadatafs/buffer.c include/linux/buffer_head.h+0 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/6 v2] fs: Provide function to unmap metadata for a range of blocks

Hello,

I've noticed that in several places we need to unmap metadata in buffer cache for a range of blocks and we do it by iterating over all blocks in given range. Let's provide a helper function for that and implement it in a way more efficient for larger ranges of blocks. Also cleanup other uses of unmap_unerlying_metadata(). The patches passed xfstests for ext2 and ext4.

Jens, can you merge these patches if they look fine to you?

Changes since v1:
* Improved comment describing what the function does
* Renamed function
* Added wrapper for single block users and use it

Honza