]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hugetlbfs: fix hugetlb_get_unmapped_area()
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Wed, 21 Mar 2012 23:33:54 +0000 (16:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Mar 2012 00:54:56 +0000 (17:54 -0700)
commit4bfc130d5afa28395288d1b57092906349604b41
tree947666e26c6f1e55b3ebdf5edcefda5019a65c8f
parentaad6ec3777bf4930d4f7293745cc4c17a2d87947
hugetlbfs: fix hugetlb_get_unmapped_area()

Use/update cached_hole_size and free_area_cache properly to speedup
finding of a free region.

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hugetlbfs/inode.c