[PATCH 0/2] fs/dax: Clean up busy page lookup helpers

Kaitao Cheng posted 2 patches 3 weeks, 1 day ago
fs/dax.c            | 24 ++++++++----------------
include/linux/dax.h | 12 ------------
2 files changed, 8 insertions(+), 28 deletions(-)
[PATCH 0/2] fs/dax: Clean up busy page lookup helpers
Posted by Kaitao Cheng 3 weeks, 1 day ago
The dax_layout_busy_page() and dax_layout_busy_page_range() helpers were
originally exposed so filesystems could find pinned DAX pages before
changing file layouts. Filesystem callers now use dax_break_layout(),
which provides the complete operation, leaving no direct users of these
lookup helpers outside fs/dax.c.

Remove the unused whole-mapping wrapper and make the remaining range
helper private to fs/dax.c. This reduces the exported DAX interface with
no functional change.

Kaitao Cheng (2):
  fs/dax: Remove unused dax_layout_busy_page()
  fs/dax: Make dax_layout_busy_page_range() static

 fs/dax.c            | 24 ++++++++----------------
 include/linux/dax.h | 12 ------------
 2 files changed, 8 insertions(+), 28 deletions(-)

-- 
2.50.1 (Apple Git-155)
Re: [PATCH 0/2] fs/dax: Clean up busy page lookup helpers
Posted by Christian Brauner 2 weeks, 2 days ago
On Fri, 04 Sep 2026 23:27:47 +0800, Kaitao Cheng wrote:
> fs/dax: Clean up busy page lookup helpers
> 
> The dax_layout_busy_page() and dax_layout_busy_page_range() helpers were
> originally exposed so filesystems could find pinned DAX pages before
> changing file layouts. Filesystem callers now use dax_break_layout(),
> which provides the complete operation, leaving no direct users of these
> lookup helpers outside fs/dax.c.
> 
> [...]

Applied to the vfs-7.4.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.misc

[1/2] fs/dax: Remove unused dax_layout_busy_page()
      https://git.kernel.org/vfs/vfs/c/cc939930c450
[2/2] fs/dax: Make dax_layout_busy_page_range() static
      https://git.kernel.org/vfs/vfs/c/24bf180c869b