aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2012-07-11 21:02:48 +0000
committerLinus Torvalds <[email protected]>2012-07-11 23:04:48 +0000
commitb065b4321fa78e83bf8f5b0d79d0b5424b57998b (patch)
tree353111b96469e4499faf8513c039ac9043236443 /mm/sparse.c
parentshmem: fix negative rss in memcg memory.stat (diff)
downloadkernel-b065b4321fa78e83bf8f5b0d79d0b5424b57998b.tar.gz
kernel-b065b4321fa78e83bf8f5b0d79d0b5424b57998b.zip
shmem: cleanup shmem_add_to_page_cache
shmem_add_to_page_cache() has three callsites, but only one of them wants the radix_tree_preload() (an exceptional entry guarantees that the radix tree node is present in the other cases), and only that site can achieve mem_cgroup_uncharge_cache_page() (PageSwapCache makes it a no-op in the other cases). We did it this way originally to reflect add_to_page_cache_locked(); but it's confusing now, so move the radix_tree preloading and mem_cgroup uncharging to that one caller. Signed-off-by: Hugh Dickins <[email protected]> Acked-by: Johannes Weiner <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions