Skip to content

Add invalidatepage_range address space operation

Lukas Czerner linux-ext4 linux-fsdevel linux-mm linux-xfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 10 repliesIn review
  2. v115 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15mm: add invalidatepage_range address space operationDocumentation/filesystems/Locking Documentation/filesystems/vfs.txt fs/buffer.c +4 more+99 -115 replies
2/15jbd2: implement jbd2_journal_invalidatepage_rangefs/jbd2/journal.c fs/jbd2/transaction.c include/linux/jbd2.h+20 -23 replies
3/15ext4: implement invalidatepage_range aopfs/ext4/inode.c include/trace/events/ext4.h+49 -230 replies
4/15xfs: implement invalidatepage_range aopfs/xfs/xfs_aops.c fs/xfs/xfs_trace.h+48 -70 replies
5/15ocfs2: implement invalidatepage_range aopfs/ocfs2/aops.c+4 -30 replies
6/15mm: teach truncate_inode_pages_range() to handle non page aligned rangesmm/truncate.c+50 -270 replies
7/15ext4: Take i_mutex before punching holefs/ext4/extents.c+10 -162 replies
8/15Revert "ext4: remove no longer used functions in inode.c"fs/ext4/ext4.h fs/ext4/inode.c+124 -00 replies
9/15Revert "ext4: fix fsx truncate failure"fs/ext4/extents.c fs/ext4/indirect.c+4 -220 replies
10/15ext4: use ext4_zero_partial_blocks in punch_holefs/ext4/ext4.h fs/ext4/extents.c fs/ext4/inode.c+42 -710 replies
11/15ext4: remove unused discard_partial_page_buffersfs/ext4/ext4.h fs/ext4/inode.c+0 -2140 replies
12/15ext4: remove unused code from ext4_remove_blocks()fs/ext4/extents.c+4 -170 replies
13/15ext4: update ext4_ext_remove_space trace pointfs/ext4/extents.c include/trace/events/ext4.h+17 -100 replies
14/15ext4: make punch hole code path work with bigallocfs/ext4/extents.c include/trace/events/ext4.h+64 -300 replies
15/15ext4: Allow punch hole with bigalloc enabledfs/ext4/inode.c+0 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 00/15 v2] Add invalidatepage_range address space operation

This set of patches are aimed to allow truncate_inode_pages_range() handle ranges which are not aligned at the end of the page. Currently it will hit BUG_ON() when the end of the range is not aligned. Punch hole feature however can benefit from this ability saving file systems some work not forcing them to implement their own invalidate code to handle unaligned ranges.

In order for this to work we need however new address space operation invalidatepage_range which should be able to handle page invalidation with offset and length specified.

patch 01: Implements the new invalidatepage_range address space
operation in the mm layer
patch 02 - 05: Wire the new invalidatepage_range aop to the ext4, xfs and
ocfs2 file system (which are currently the only file systems supporting punch hole not counting tmpfs which has its own method) and implement this functionality for jbd2 as well.
patch 06: Change truncate_inode_pages_range() to handle unaligned
ranges.
patch 07 - 15: Ext4 specific changes which take benefit from the
previous truncate_inode_pages_range() change. Not all are realated specifically to this change, but all are related to the punch hole feature.

v2: Change invalidatepage_range lenght and offset argument to be 'unsigned int'
Fix range provided to do_invalidatepage_range() in truncate_inode_pages_range()

Thanks!
-Lukas

[PATCH 01/15 v2] mm: add invalidatepage_range address space operation [PATCH 02/15 v2] jbd2: implement jbd2_journal_invalidatepage_range [PATCH 03/15 v2] ext4: implement invalidatepage_range aop [PATCH 04/15 v2] xfs: implement invalidatepage_range aop [PATCH 05/15 v2] ocfs2: implement invalidatepage_range aop [PATCH 06/15 v2] mm: teach truncate_inode_pages_range() to handle non [PATCH 07/15 v2] ext4: Take i_mutex before punching hole [PATCH 08/15 v2] Revert "ext4: remove no longer used functions in [PATCH 09/15 v2] Revert "ext4: fix fsx truncate failure" [PATCH 10/15 v2] ext4: use ext4_zero_partial_blocks in punch_hole [PATCH 11/15 v2] ext4: remove unused discard_partial_page_buffers [PATCH 12/15 v2] ext4: remove unused code from ext4_remove_blocks() [PATCH 13/15 v2] ext4: update ext4_ext_remove_space trace point [PATCH 14/15 v2] ext4: make punch hole code path work with bigalloc [PATCH 15/15 v2] ext4: Allow punch hole with bigalloc enabled

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>