aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>2013-09-11 17:21:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 18:57:31 -0400
commitd2cf5ad6312ca9913464fac40fb47ba47ad945c4 (patch)
tree05590c6fed5ee9b86b65e1c23a899e921faeb040 /include/linux
parentbc4b4448dba660afc8df3790564320302d9709a1 (diff)
swap: clean-up #ifdef in page_mapping()
PageSwapCache() is always false when !CONFIG_SWAP, so compiler properly discard related code. Therefore, we don't need #ifdef explicitly. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/swap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 24db9142e93b..c03c139219c9 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -447,6 +447,7 @@ mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout)
447 447
448#else /* CONFIG_SWAP */ 448#else /* CONFIG_SWAP */
449 449
450#define swap_address_space(entry) (NULL)
450#define get_nr_swap_pages() 0L 451#define get_nr_swap_pages() 0L
451#define total_swap_pages 0L 452#define total_swap_pages 0L
452#define total_swapcache_pages() 0UL 453#define total_swapcache_pages() 0UL