diff options
| author | Christoph Hellwig <[email protected]> | 2024-02-19 06:27:09 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2024-02-21 06:06:50 +0000 |
| commit | b64e74e95aa6491b31477e9002aab1d8df3995bf (patch) | |
| tree | d923a7ab17be7b75d5c6f24a3b5d3287ab11a852 /mm/filemap.c | |
| parent | xfs: use kvfree in xfs_ioc_getfsmap() (diff) | |
| download | kernel-b64e74e95aa6491b31477e9002aab1d8df3995bf.tar.gz kernel-b64e74e95aa6491b31477e9002aab1d8df3995bf.zip | |
mm: move mapping_set_update out of <linux/swap.h>
mapping_set_update is only used inside mm/. Move mapping_set_update to
mm/internal.h and turn it into an inline function instead of a macro.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'mm/filemap.c')
| -rw-r--r-- | mm/filemap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 750e779c23db..6c8b089f00d2 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -124,6 +124,15 @@ * ->private_lock (zap_pte_range->block_dirty_folio) */ +static void mapping_set_update(struct xa_state *xas, + struct address_space *mapping) +{ + if (dax_mapping(mapping) || shmem_mapping(mapping)) + return; + xas_set_update(xas, workingset_update_node); + xas_set_lru(xas, &shadow_nodes); +} + static void page_cache_delete(struct address_space *mapping, struct folio *folio, void *shadow) { |
