From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by kanga.kvack.org (Postfix) with ESMTP id 9754B6B0038 for ; Thu, 16 Apr 2015 19:03:17 -0400 (EDT) Received: by obbfy7 with SMTP id fy7so53335048obb.2 for ; Thu, 16 Apr 2015 16:03:17 -0700 (PDT) Received: from aserp1040.oracle.com (aserp1040.oracle.com. [141.146.126.69]) by mx.google.com with ESMTPS id r9si1198972obu.43.2015.04.16.16.03.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Apr 2015 16:03:16 -0700 (PDT) From: Mike Kravetz Subject: [RFC PATCH 0/4] hugetlbfs: add fallocate support Date: Thu, 16 Apr 2015 16:02:54 -0700 Message-Id: <1429225378-22965-1-git-send-email-mike.kravetz@oracle.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Dave Hansen , Naoya Horiguchi , David Rientjes , Hugh Dickins , Davidlohr Bueso , Aneesh Kumar , Mike Kravetz hugetlbfs is used today by applications that want a high degree of control over huge page usage. Often, large hugetlbfs files are used to map a large number huge pages into the application processes. The applications know when page ranges within these large files will no longer be used, and ideally would like to release them back to the subpool or global pools for other uses. The fallocate() system call provides an interface for preallocation and hole punching within files. This patch set adds fallocate functionality to hugetlbfs. Mike Kravetz (4): hugetlbfs: truncate_hugepages() takes a range of pages hugetlbfs: New huge_add_to_page_cache helper routine hugetlbfs: add hugetlbfs_fallocate() mm: madvise allow remove operation for hugetlbfs fs/hugetlbfs/inode.c | 164 ++++++++++++++++++++++++++++++++++++++++++++++-- include/linux/hugetlb.h | 5 ++ mm/hugetlb.c | 29 ++++++--- mm/madvise.c | 2 +- 4 files changed, 185 insertions(+), 15 deletions(-) -- 2.1.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org