commit | a29a171e7c46c60842b85729280e2f5690372683 | [log] [tgz] |
---|---|---|
author | Vivek Goyal <vgoyal@redhat.com> | Thu May 19 15:38:19 2011 -0400 |
committer | Jens Axboe <jaxboe@fusionio.com> | Fri May 20 20:34:51 2011 +0200 |
tree | 83d9be7f8801c04feeac0256e677da7240239046 | |
parent | 698567f3fa790fea37509a54dea855302dd88331 [diff] |
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>