summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-09-02 22:46:04 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-10-04 00:02:45 +0300
commit907ea17eb2b436f07332c935476d77893abae735 (patch)
tree5050dd659c8644d6a267b2663a5e40b8659d1650 /include/linux/debugobjects.h
parent4cd400fd1f55dde1fa430a706828042daed94c43 (diff)
downloadlinux-907ea17eb2b436f07332c935476d77893abae735.tar.xz
shmem: convert shmem_replace_page() to use folios throughout
Introduce folio_set_swap_entry() to abstract how both folio->private and swp_entry_t work. Use swap_address_space() directly instead of indirecting through folio_mapping(). Include an assertion that the old folio is not large as we only allocate a single-page folio to replace it. Use folio_put_refs() instead of calling folio_put() twice. Link: https://lkml.kernel.org/r/20220902194653.1739778-9-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions