aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-03-02 09:09:22 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:47:32 -0400
commitd4430d62fa77208824a37fe6f85ab2831d274769 (patch)
tree5d4d0bca31e63eb208fbebe4f39c912b964c1e4d /drivers/block/cciss.c
parentbadf8082c33d18b118d3a6f1b32d5ea6b97d3839 (diff)
[PATCH] beginning of methods conversion
To keep the size of changesets sane we split the switch by drivers; to keep the damn thing bisectable we do the following: 1) rename the affected methods, add ones with correct prototypes, make (few) callers handle both. That's this changeset. 2) for each driver convert to new methods. *ALL* drivers are converted in this series. 3) kill the old (renamed) methods. Note that it _is_ a flagday; all in-tree drivers are converted and by the end of this series no trace of old methods remain. The only reason why we do that this way is to keep the damn thing bisectable and allow per-driver debugging if anything goes wrong. New methods: open(bdev, mode) release(disk, mode) ioctl(bdev, mode, cmd, arg) /* Called without BKL */ compat_ioctl(bdev, mode, cmd, arg) locked_ioctl(bdev, mode, cmd, arg) /* Called with BKL, legacy */ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r--drivers/block/cciss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index d9b1c15b8113..781b745181d2 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -197,12 +197,12 @@ static long cciss_compat_ioctl(struct file *f, unsigned cmd, unsigned long arg);
197 197
198static struct block_device_operations cciss_fops = { 198static struct block_device_operations cciss_fops = {
199 .owner = THIS_MODULE, 199 .owner = THIS_MODULE,
200 .open = cciss_open, 200 .__open = cciss_open,
201 .release = cciss_release, 201 .__release = cciss_release,
202 .ioctl = cciss_ioctl, 202 .__ioctl = cciss_ioctl,
203 .getgeo = cciss_getgeo, 203 .getgeo = cciss_getgeo,
204#ifdef CONFIG_COMPAT 204#ifdef CONFIG_COMPAT
205 .compat_ioctl = cciss_compat_ioctl, 205 .__compat_ioctl = cciss_compat_ioctl,
206#endif 206#endif
207 .revalidate_disk = cciss_revalidate, 207 .revalidate_disk = cciss_revalidate,
208}; 208};