diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-09-13 18:15:28 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-09 19:59:13 -0700 |
commit | c8d8beea0383e47c9d65d45f0ca95626ec435fcd (patch) | |
tree | 00f409205683f3489344eb0cf1b86f8091354fc7 /include/rdma/ib_umem.h | |
parent | 247e020ee5e2a7bf46f2d7a3d4490a670a712a40 (diff) | |
download | op-kernel-dev-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.zip op-kernel-dev-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.tar.gz |
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/ib_umem.h')
-rw-r--r-- | include/rdma/ib_umem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h index c533d6c..2229842 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; |