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>
This commit is contained in:
Joachim Fenkes
2007-09-13 18:15:28 +02:00
committed by Roland Dreier
parent 247e020ee5
commit c8d8beea03
2 changed files with 20 additions and 1 deletions

View File

@ -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;