Skip to content

Commit 1269019

Browse files
koct9itorvalds
authored andcommitted
mm/mmap: kill hook arch_rebalance_pgtables()
Nobody uses it. Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e87d59f commit 1269019

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

mm/mmap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555
#define arch_mmap_check(addr, len, flags) (0)
5656
#endif
5757

58-
#ifndef arch_rebalance_pgtables
59-
#define arch_rebalance_pgtables(addr, len) (addr)
60-
#endif
61-
6258
#ifdef CONFIG_HAVE_ARCH_MMAP_RND_BITS
6359
const int mmap_rnd_bits_min = CONFIG_ARCH_MMAP_RND_BITS_MIN;
6460
const int mmap_rnd_bits_max = CONFIG_ARCH_MMAP_RND_BITS_MAX;
@@ -1911,7 +1907,6 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
19111907
if (offset_in_page(addr))
19121908
return -EINVAL;
19131909

1914-
addr = arch_rebalance_pgtables(addr, len);
19151910
error = security_mmap_addr(addr);
19161911
return error ? error : addr;
19171912
}

0 commit comments

Comments
 (0)