Skip to content

Removing the try_to_release_page() wrapper

Vishal Moola (Oracle) linux-ext4 linux-fsdevel linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] folio-compat-remove-try_to_release_page.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesApplied 4/4
  2. v24 patches 1 replySuperseded
  3. v14 patches 3 repliesSuperseded

Changes in v3 from the cover letter

Fixed a mistake with a VM_BUG_ON_FOLIO check

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4ext4: Convert move_extent_per_page() to use foliosfs/ext4/move_extent.c+31 -210 repliesApplied
2/4khugepage: Replace try_to_release_page() with filemap_release_folio()mm/khugepaged.c+12 -110 repliesApplied
3/4memory-failure: Convert truncate_error_page() to use foliomm/memory-failure.c+3 -20 repliesApplied
4/4folio-compat: Remove try_to_release_page()include/linux/pagemap.h mm/folio-compat.c+0 -70 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchNaoya Horiguchi
1/4
2/4
3/4A-b
4/4

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

Read the v3 thread

Cover letter [PATCH v3 0/4] Removing the try_to_release_page() wrapper

This patchset replaces the remaining calls of try_to_release_page() with the folio equivalent: filemap_release_folio(). This allows us to remove the wrapper.

The set passes fstests on ext4 and xfs.

---
v3:
Fixed a mistake with a VM_BUG_ON_FOLIO check

v2:
Added VM_BUG_ON_FOLIO to ext4 for catching future data corruption

Vishal Moola (Oracle) (4):
ext4: Convert move_extent_per_page() to use folios
khugepage: Replace try_to_release_page() with filemap_release_folio()
memory-failure: Convert truncate_error_page() to use folio
folio-compat: Remove try_to_release_page()

 fs/ext4/move_extent.c   | 52 ++++++++++++++++++++++++-----------------
 include/linux/pagemap.h |  1 -
 mm/folio-compat.c       |  6 -----
 mm/khugepaged.c         | 23 +++++++++---------
 mm/memory-failure.c     |  5 ++--
 5 files changed, 46 insertions(+), 41 deletions(-)
Signature · 1 line
2.38.1