]> err.no Git - linux-2.6/commit
[PATCH] IB/mthca: allocate correct number of doorbell pages
authorRoland Dreier <roland@topspin.com>
Sat, 16 Apr 2005 22:26:18 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:18 +0000 (15:26 -0700)
commit85665c9816a2b38866e03c019bf5c2e47eb9fb04
treee9a2d836259c200967e4be4185fcc7cc9a3e80ed
parente464b2a6c2c297702205ab725fd82489550a7893
[PATCH] IB/mthca: allocate correct number of doorbell pages

Doorbell record pages are allocated in HCA page size chunks (always 4096
bytes), so we need to divide by 4096 and not PAGE_SIZE when figuring out how
many pages we'll need space for.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_memfree.c