diff options
| author | Kaitao Cheng <chengkaitao@kylinos.cn> | 2026-09-04 23:27:48 +0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-10 10:05:14 +0200 |
| commit | cc939930c450ba3e6b68676e7c048aa47ad5afbe (patch) | |
| tree | 58081e22c7c2581db240e276c87d672d2e502f66 /include/linux | |
| parent | 1eff23433e73d7da4f9e3529d2701e34962b161f (diff) | |
| download | linux-cc939930c450ba3e6b68676e7c048aa47ad5afbe.tar.gz linux-cc939930c450ba3e6b68676e7c048aa47ad5afbe.zip | |
fs/dax: Remove unused dax_layout_busy_page()
dax_layout_busy_page() used to let filesystems scan an entire DAX
mapping for pinned pages. All callers now use dax_break_layout(),
which also handles waiting for busy pages and deleting DAX mapping
entries once the range becomes idle.
The remaining function is only a wrapper around
dax_layout_busy_page_range() and has no in-tree users. Remove it
together with its declaration, !CONFIG_FS_DAX stub, and exported
symbol.
Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn>
Link: https://patch.msgid.link/20260904152749.84493-2-kaitao.cheng@linux.dev
Acked-by: Muchun Song <muchun.song@linux.dev>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dax.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h index fe6c3ded1b50..05e59e45a1c2 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -155,7 +155,6 @@ int dax_writeback_mapping_range(struct address_space *mapping, struct dax_device *dax_dev, struct writeback_control *wbc); int dax_folio_reset_order(struct folio *folio); -struct page *dax_layout_busy_page(struct address_space *mapping); struct page *dax_layout_busy_page_range(struct address_space *mapping, loff_t start, loff_t end); dax_entry_t dax_lock_folio(struct folio *folio); void dax_unlock_folio(struct folio *folio, dax_entry_t cookie); @@ -173,11 +172,6 @@ static inline int fs_dax_get(struct dax_device *dax_dev, void *holder, { return -EOPNOTSUPP; } -static inline struct page *dax_layout_busy_page(struct address_space *mapping) -{ - return NULL; -} - static inline struct page *dax_layout_busy_page_range(struct address_space *mapping, pgoff_t start, pgoff_t nr_pages) { return NULL; |
