Skip to content

Commit 8b13601

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: rename CONFIG_PGTABLE_MAPPING to CONFIG_ZSMALLOC_PGTABLE_MAPPING
Rename the Kconfig variable to clarify the scope. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Christophe Leroy <christophe.leroy@c-s.fr> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: David Airlie <airlied@linux.ie> Cc: Gao Xiang <xiang@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: "K. Y. Srinivasan" <kys@microsoft.com> Cc: Laura Abbott <labbott@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Michael Kelley <mikelley@microsoft.com> Cc: Nitin Gupta <ngupta@vflare.org> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Sakari Ailus <sakari.ailus@linux.intel.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Wei Liu <wei.liu@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Paul Mackerras <paulus@ozlabs.org> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Will Deacon <will@kernel.org> Link: http://lkml.kernel.org/r/20200414131348.444715-11-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8f87cc9 commit 8b13601

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎arch/arm/configs/omap2plus_defconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CONFIG_PARTITION_ADVANCED=y
8181
CONFIG_BINFMT_MISC=y
8282
CONFIG_CMA=y
8383
CONFIG_ZSMALLOC=m
84-
CONFIG_PGTABLE_MAPPING=y
84+
CONFIG_ZSMALLOC_PGTABLE_MAPPING=y
8585
CONFIG_NET=y
8686
CONFIG_PACKET=y
8787
CONFIG_UNIX=y

‎include/linux/zsmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* zsmalloc mapping modes
2121
*
2222
* NOTE: These only make a difference when a mapped object spans pages.
23-
* They also have no effect when PGTABLE_MAPPING is selected.
23+
* They also have no effect when ZSMALLOC_PGTABLE_MAPPING is selected.
2424
*/
2525
enum zs_mapmode {
2626
ZS_MM_RW, /* normal read-write mapping */

‎mm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ config ZSMALLOC
705705
returned by an alloc(). This handle must be mapped in order to
706706
access the allocated space.
707707

708-
config PGTABLE_MAPPING
708+
config ZSMALLOC_PGTABLE_MAPPING
709709
bool "Use page table mapping to access object in zsmalloc"
710710
depends on ZSMALLOC
711711
help

‎mm/zsmalloc.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ struct zspage {
293293
};
294294

295295
struct mapping_area {
296-
#ifdef CONFIG_PGTABLE_MAPPING
296+
#ifdef CONFIG_ZSMALLOC_PGTABLE_MAPPING
297297
struct vm_struct *vm; /* vm area for mapping object that span pages */
298298
#else
299299
char *vm_buf; /* copy buffer for objects that span pages */
@@ -1113,7 +1113,7 @@ static struct zspage *find_get_zspage(struct size_class *class)
11131113
return zspage;
11141114
}
11151115

1116-
#ifdef CONFIG_PGTABLE_MAPPING
1116+
#ifdef CONFIG_ZSMALLOC_PGTABLE_MAPPING
11171117
static inline int __zs_cpu_up(struct mapping_area *area)
11181118
{
11191119
/*
@@ -1151,7 +1151,7 @@ static inline void __zs_unmap_object(struct mapping_area *area,
11511151
unmap_kernel_range(addr, PAGE_SIZE * 2);
11521152
}
11531153

1154-
#else /* CONFIG_PGTABLE_MAPPING */
1154+
#else /* CONFIG_ZSMALLOC_PGTABLE_MAPPING */
11551155

11561156
static inline int __zs_cpu_up(struct mapping_area *area)
11571157
{
@@ -1233,7 +1233,7 @@ static void __zs_unmap_object(struct mapping_area *area,
12331233
pagefault_enable();
12341234
}
12351235

1236-
#endif /* CONFIG_PGTABLE_MAPPING */
1236+
#endif /* CONFIG_ZSMALLOC_PGTABLE_MAPPING */
12371237

12381238
static int zs_cpu_prepare(unsigned int cpu)
12391239
{

0 commit comments

Comments
 (0)