]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/fmr_pool: Allocate page list for pool FMRs only when caching enabled
authorOr Gerlitz <ogerlitz@voltaire.com>
Tue, 29 Jan 2008 10:56:18 +0000 (12:56 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 5 Feb 2008 04:20:44 +0000 (20:20 -0800)
commit1d96354e617990799b1cb5d7ff8f7c467b8767c8
tree7d106bf836c8cd99ee844845e71216e83c004248
parent9fe4bcf45ece0b0081031edaaa41581c85ef7049
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: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/fmr_pool.c