blk-throttle: Do the new group initialization with the help of a function
authorVivek Goyal <vgoyal@redhat.com>
Thu, 19 May 2011 19:38:19 +0000 (15:38 -0400)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 20 May 2011 18:34:51 +0000 (20:34 +0200)
commita29a171e7c46c60842b85729280e2f5690372683
tree83d9be7f8801c04feeac0256e677da7240239046
parent698567f3fa790fea37509a54dea855302dd88331
blk-throttle: Do the new group initialization with the help of a function

Group initialization code seems to be at two places. root group
initialization in blk_throtl_init() and dynamically allocated group
in throtl_find_alloc_tg(). Create a common function and use at both
the places.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-throttle.c