diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-04-02 17:59:59 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-04-07 10:36:49 +0300 |
| commit | 7b73c12c6ebf006ad496f0e38a605d92dfe05157 (patch) | |
| tree | b3f3798ef7697d2802d3650852dd1c0bf83b2a94 /include/linux | |
| parent | 8e5ae388f33a5270ea4193e533c0770d51f6a9be (diff) | |
| download | linux-7b73c12c6ebf006ad496f0e38a605d92dfe05157.tar.xz | |
shmem: Add shmem_writeout()
This will be the replacement for shmem_writepage().
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250402150005.2309458-6-willy@infradead.org
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/shmem_fs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index 0b273a7b9f01..5f03a39a26f7 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h @@ -104,10 +104,11 @@ static inline bool shmem_mapping(struct address_space *mapping) return false; } #endif /* CONFIG_SHMEM */ -extern void shmem_unlock_mapping(struct address_space *mapping); -extern struct page *shmem_read_mapping_page_gfp(struct address_space *mapping, +void shmem_unlock_mapping(struct address_space *mapping); +struct page *shmem_read_mapping_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask); -extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end); +int shmem_writeout(struct folio *folio, struct writeback_control *wbc); +void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end); int shmem_unuse(unsigned int type); #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
