diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2009-12-10 18:51:57 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-12-10 18:51:57 -0500 |
commit | 952b355760c196ec014dd0b6878f85a11496e3da (patch) | |
tree | 0a6907fa6dce2bac8afdc2efea774f19bdbb9a17 /drivers/md/dm.h | |
parent | 542da317668c35036e8471822a564b609d05af66 (diff) |
dm io: use slab for struct io
Allocate "struct io" from a slab.
This patch changes dm-io, so that "struct io" is allocated from a slab cache.
It used to be allocated with kmalloc. Allocating from a slab will be needed
for the next patch, because it requires a special alignment of "struct io"
and kmalloc cannot meet this alignment.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r-- | drivers/md/dm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index a7663eba17e2..4a95e8fa3607 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h | |||
@@ -118,6 +118,9 @@ int dm_lock_for_deletion(struct mapped_device *md); | |||
118 | void dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, | 118 | void dm_kobject_uevent(struct mapped_device *md, enum kobject_action action, |
119 | unsigned cookie); | 119 | unsigned cookie); |
120 | 120 | ||
121 | int dm_io_init(void); | ||
122 | void dm_io_exit(void); | ||
123 | |||
121 | int dm_kcopyd_init(void); | 124 | int dm_kcopyd_init(void); |
122 | void dm_kcopyd_exit(void); | 125 | void dm_kcopyd_exit(void); |
123 | 126 | ||