Skip to content
Commit 1d96354e authored by Or Gerlitz's avatar Or Gerlitz Committed by Roland Dreier
Browse files

IB/fmr_pool: Allocate page list for pool FMRs only when caching enabled



Allocate memory for the page_list field of struct ib_pool_fmr only
when caching is enabled for the FMR pool, since the field is not used
otherwise.  This can save significant amounts of memory for large
pools with caching turned off.

Signed-off-by: default avatarOr Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 9fe4bcf4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment