aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorJoachim Fenkes <fenkes@de.ibm.com>2007-09-13 18:15:28 +0200
committerRoland Dreier <rolandd@cisco.com>2007-10-09 19:59:13 -0700
commitc8d8beea0383e47c9d65d45f0ca95626ec435fcd (patch)
tree00f409205683f3489344eb0cf1b86f8091354fc7 /include/rdma
parent247e020ee5e2a7bf46f2d7a3d4490a670a712a40 (diff)
downloadkernel_samsung_smdk4412-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.tar.gz
kernel_samsung_smdk4412-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.tar.bz2
kernel_samsung_smdk4412-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.zip
IB/umem: Add hugetlb flag to struct ib_umem
During ib_umem_get(), determine whether all pages from the memory region are hugetlb pages and report this in the "hugetlb" member. Low-level drivers can use this information if they need it. Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_umem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h
index c533d6c7903..22298423cf0 100644
--- a/include/rdma/ib_umem.h
+++ b/include/rdma/ib_umem.h
@@ -45,6 +45,7 @@ struct ib_umem {
int offset;
int page_size;
int writable;
+ int hugetlb;
struct list_head chunk_list;
struct work_struct work;
struct mm_struct *mm;