]> git.baikalelectronics.ru Git - kernel.git/commit
block,elevator: use new hashtable implementation
authorSasha Levin <sasha.levin@oracle.com>
Mon, 17 Dec 2012 15:01:27 +0000 (10:01 -0500)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2013 13:43:13 +0000 (14:43 +0100)
commitb0495f4051a3389ea7060d4a337d25f105bf3bb1
treedf4bd59a6db181b796ff8687339e4335e2c59104
parent0535dafcce1bd9f556e205dba871e11794ee3a77
block,elevator: use new hashtable implementation

Switch elevator to use the new hashtable implementation. This reduces the
amount of generic unrelated code in the elevator.

This also removes the dymanic allocation of the hash table. The size of the table is
constant so there's no point in paying the price of an extra dereference when accessing
it.

This patch depends on 36020bd ("hashtable: introduce a small and naive
hashtable") which was merged in v3.6.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/elevator.c
include/linux/elevator.h