diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2007-09-13 12:15:28 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-09 22:59:13 -0400 |
commit | c8d8beea0383e47c9d65d45f0ca95626ec435fcd (patch) | |
tree | 00f409205683f3489344eb0cf1b86f8091354fc7 /include/rdma/ib_umem.h | |
parent | 247e020ee5e2a7bf46f2d7a3d4490a670a712a40 (diff) |
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 { | |||
45 | int offset; | 45 | int offset; |
46 | int page_size; | 46 | int page_size; |
47 | int writable; | 47 | int writable; |
48 | int hugetlb; | ||
48 | struct list_head chunk_list; | 49 | struct list_head chunk_list; |
49 | struct work_struct work; | 50 | struct work_struct work; |
50 | struct mm_struct *mm; | 51 | struct mm_struct *mm; |