[PATCH] taskstats: factor out reply assembling
authorOleg Nesterov <oleg@tv-sign.ru>
Thu, 7 Dec 2006 04:36:53 +0000 (20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:34 +0000 (08:39 -0800)
commit68062b86fc0f480b806d270a8278709a5a41bb67
treeb8a89eb4aa6c29ded09283b7a88960e9fa106650
parent34ec12349c8a9505adc59d72f92b4595bc2483ff
[PATCH] taskstats: factor out reply assembling

Introduce mk_reply() helper which does all nla_put()s on reply.

Saves 453 bytes and a preparation for the next patch.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@sgi.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/taskstats.c