diff options
author | Hugh Dickins <hugh@veritas.com> | 2008-02-05 07:28:50 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 18:44:15 +0100 |
commit | 73b1262fa43a778b1e154deea632cdef5009d6a1 (patch) | |
tree | 409f14e78e23cd999e8c3d1e0945f0fa9b67048f /.gitignore | |
parent | tmpfs: shuffle add_to_swap_caches (diff) | |
download | linux-73b1262fa43a778b1e154deea632cdef5009d6a1.tar.xz linux-73b1262fa43a778b1e154deea632cdef5009d6a1.zip |
tmpfs: move swap swizzling into shmem
move_to_swap_cache and move_from_swap_cache functions (which swizzle a page
between tmpfs page cache and swap cache, to avoid page copying) are only used
by shmem.c; and our subsequent fix for unionfs needs different treatments in
the two instances of move_from_swap_cache. Move them from swap_state.c into
their callsites shmem_writepage, shmem_unuse_inode and shmem_getpage, making
add_to_swap_cache externally visible.
shmem.c likes to say set_page_dirty where swap_state.c liked to say
SetPageDirty: respect that diversity, which __set_page_dirty_no_writeback
makes moot (and implies we should lose that "shift page from clean_pages to
dirty_pages list" comment: it's on neither).
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions