Whamcloud - gitweb
Remove use of local stack variables (size, ptr) for {PORTAL,OBD}_{ALLOC,FREE}().
authoradilger <adilger>
Thu, 12 Jun 2003 05:38:42 +0000 (05:38 +0000)
committeradilger <adilger>
Thu, 12 Jun 2003 05:38:42 +0000 (05:38 +0000)
commit791677ee54c0aa5f086b8d16d51d1a4fdd58074c
tree2d80af252402601baa7687baf3658a4d657ee7ca
parent06a0fb9d408d68889ba1dbe8b5c08d4afdc3ce4f
Remove use of local stack variables (size, ptr) for {PORTAL,OBD}_{ALLOC,FREE}().
I think these were intended to avoid doing multiple evals of math/function
calls for the size, but all of our usage so far is passing in a constant
or a variable that has already computed the size.

By reordering the *_FREE() macros slightly, we do not need to store the size
of the free in a local stack variable either.  We have to be careful though,
because "size" may be part of the struct we are poisoning/freeing.
lnet/include/linux/kp30.h
lustre/portals/include/linux/kp30.h