x86/mm: Rename tasksize_32bit/64bit to task_size_32bit/64bit()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Sun, 16 Jul 2017 22:59:50 +0000 (01:59 +0300)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Jul 2017 08:05:18 +0000 (10:05 +0200)
Rename these helpers to be consistent with spelling of TASK_SIZE and
related constants.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20170716225954.74185-5-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/elf.h
arch/x86/kernel/sys_x86_64.c
arch/x86/mm/hugetlbpage.c
arch/x86/mm/mmap.c

index 1c18d83d3f094d1f5abfa09a08b67e9cb6b7376d..c7090ef1388e182c80c75dc9e806be300ba89067 100644 (file)
@@ -304,8 +304,8 @@ static inline int mmap_is_ia32(void)
                test_thread_flag(TIF_ADDR32));
 }
 
-extern unsigned long tasksize_32bit(void);
-extern unsigned long tasksize_64bit(void);
+extern unsigned long task_size_32bit(void);
+extern unsigned long task_size_64bit(void);
 extern unsigned long get_mmap_base(int is_legacy);
 
 #ifdef CONFIG_X86_32
index 213ddf3e937d800577514a3677f742813298555e..89bd0d6460e1ef4723baad6da22b34e77b318a17 100644 (file)
@@ -120,7 +120,7 @@ static void find_start_end(unsigned long flags, unsigned long *begin,
        }
 
        *begin  = get_mmap_base(1);
-       *end    = in_compat_syscall() ? tasksize_32bit() : tasksize_64bit();
+       *end    = in_compat_syscall() ? task_size_32bit() : task_size_64bit();
 }
 
 unsigned long
index 2824607df1081fe38a96d5e8af70e7c295e43ed5..868f02cf58cea87cdbd4b28f24b5e267240220f7 100644 (file)
@@ -86,7 +86,7 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file,
        info.length = len;
        info.low_limit = get_mmap_base(1);
        info.high_limit = in_compat_syscall() ?
-               tasksize_32bit() : tasksize_64bit();
+               task_size_32bit() : task_size_64bit();
        info.align_mask = PAGE_MASK & ~huge_page_mask(h);
        info.align_offset = 0;
        return vm_unmapped_area(&info);
index 229d04a83f8561ec08e394f57d8cb5d671bd56ff..d2586913c8d010e0fd2241b0b90ed6e46be3def3 100644 (file)
@@ -37,12 +37,12 @@ struct va_alignment __read_mostly va_align = {
        .flags = -1,
 };
 
-unsigned long tasksize_32bit(void)
+unsigned long task_size_32bit(void)
 {
        return IA32_PAGE_OFFSET;
 }
 
-unsigned long tasksize_64bit(void)
+unsigned long task_size_64bit(void)
 {
        return TASK_SIZE_MAX;
 }
@@ -52,7 +52,7 @@ static unsigned long stack_maxrandom_size(unsigned long task_size)
        unsigned long max = 0;
        if ((current->flags & PF_RANDOMIZE) &&
                !(current->personality & ADDR_NO_RANDOMIZE)) {
-               max = (-1UL) & __STACK_RND_MASK(task_size == tasksize_32bit());
+               max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit());
                max <<= PAGE_SHIFT;
        }
 
@@ -142,7 +142,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
                mm->get_unmapped_area = arch_get_unmapped_area_topdown;
 
        arch_pick_mmap_base(&mm->mmap_base, &mm->mmap_legacy_base,
-                       arch_rnd(mmap64_rnd_bits), tasksize_64bit());
+                       arch_rnd(mmap64_rnd_bits), task_size_64bit());
 
 #ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
        /*
@@ -152,7 +152,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
         * mmap_base, the compat syscall uses mmap_compat_base.
         */
        arch_pick_mmap_base(&mm->mmap_compat_base, &mm->mmap_compat_legacy_base,
-                       arch_rnd(mmap32_rnd_bits), tasksize_32bit());
+                       arch_rnd(mmap32_rnd_bits), task_size_32bit());
 #endif
 }