]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/hugetlb: setup hugetlb_falloc during fallocate hole punch
authorMike Kravetz <mike.kravetz@oracle.com>
Wed, 21 Oct 2015 22:03:20 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:20 +0000 (09:03 +1100)
commit4e0a78fea078af972276c2d3aeaceb2bac80e033
treed474d7ec68e579828f003b1f92f7202a3a8475f1
parent0830d5afd4ab69d01cf5ceba9b9f2796564c4eb6
mm/hugetlb: setup hugetlb_falloc during fallocate hole punch

When performing a fallocate hole punch, set up a hugetlb_falloc struct and
make i_private point to it.  i_private will point to this struct for the
duration of the operation.  At the end of the operation, wake up anyone
who faulted on the hole and is on the waitq.

Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c