aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zio.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 10:58:00 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 08:38:48 -0700
commitbf701a83c5ec192be6d3afe87ebeee45ce9127f4 (patch)
tree84b1c9b02f92be72eaf8687f55dfa640431a1286 /module/zfs/zio.c
parent161ce7ce3cfc7ec1cd3c93d27f25a94b7408588f (diff)
Fix stack inline
Decrease stack usage for various call paths by forcing certain functions to be inlined. By inlining the functions the overhead of a new stack frame is removed at the cost of increased code size. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r--module/zfs/zio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index e434cf01a..f0f0cff6b 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -436,7 +436,8 @@ zio_wait_for_children(zio_t *zio, enum zio_child child, enum zio_wait_type wait)
return (waiting);
}
-static void
+__attribute__((always_inline))
+static inline void
zio_notify_parent(zio_t *pio, zio_t *zio, enum zio_wait_type wait)
{
uint64_t *countp = &pio->io_children[zio->io_child_type][wait];