summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorMike Kravetz2015-09-09 00:01:38 +0200
committerLinus Torvalds2015-09-09 00:35:28 +0200
commit1bfad99ab42569807d0ca1698449cae5e8c0334a (patch)
tree50676e321bcd807c229f85e6a272df3865480515 /mm/hugetlb.c
parentmm/hugetlb: expose hugetlb fault mutex for use by fallocate (diff)
downloadkernel-qcow2-linux-1bfad99ab42569807d0ca1698449cae5e8c0334a.tar.gz
kernel-qcow2-linux-1bfad99ab42569807d0ca1698449cae5e8c0334a.tar.xz
kernel-qcow2-linux-1bfad99ab42569807d0ca1698449cae5e8c0334a.zip
hugetlbfs: hugetlb_vmtruncate_list() needs to take a range to delete
fallocate hole punch will want to unmap a specific range of pages. Modify the existing hugetlb_vmtruncate_list() routine to take a start/end range. If end is 0, this indicates all pages after start should be unmapped. This is the same as the existing truncate functionality. Modify existing callers to add 0 as end of range. Since the routine will be used in hole punch as well as truncate operations, it is more appropriately renamed to hugetlb_vmdelete_list(). Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com> Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: David Rientjes <rientjes@google.com> Cc: Hugh Dickins <hughd@google.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions