From: Tejun Heo Date: Fri, 13 Apr 2012 20:11:28 +0000 (-0700) Subject: blkcg: remove static policy ID enums X-Git-Tag: v3.5-rc1~42^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd435b30ecacb69bbb8b2d3e251f770b807c5b2;p=pandora-kernel.git blkcg: remove static policy ID enums Remove BLKIO_POLICY_* enums and let blkio_policy_register() allocate @pol->plid dynamically on registration. The maximum number of blkcg policies which can be registered at the same time is defined by BLKCG_MAX_POLS constant added to include/linux/blkdev.h. Note that blkio_policy_register() now may fail. Policy init functions updated accordingly and unnecessary ifdefs removed from cfq_init(). Signed-off-by: Tejun Heo Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed