diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-09-13 20:15:28 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-10 06:59:13 +0400 |
commit | c8d8beea0383e47c9d65d45f0ca95626ec435fcd (patch) | |
tree | 00f409205683f3489344eb0cf1b86f8091354fc7 /include/rdma/ib_umem.h | |
parent | 247e020ee5e2a7bf46f2d7a3d4490a670a712a40 (diff) | |
download | linux-c8d8beea0383e47c9d65d45f0ca95626ec435fcd.tar.xz |
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 c533d6c7903f..22298423cf0b 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; |