mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]>
This commit is contained in:
parent
badf8082c3
commit
d4430d62fa
45 changed files with 167 additions and 131 deletions
|
|
@ -2087,10 +2087,10 @@ static int dasd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
|
|||
struct block_device_operations
|
||||
dasd_device_operations = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dasd_open,
|
||||
.release = dasd_release,
|
||||
.ioctl = dasd_ioctl,
|
||||
.compat_ioctl = dasd_compat_ioctl,
|
||||
.__open = dasd_open,
|
||||
.__release = dasd_release,
|
||||
.__ioctl = dasd_ioctl,
|
||||
.__compat_ioctl = dasd_compat_ioctl,
|
||||
.getgeo = dasd_getgeo,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ static char dcssblk_segments[DCSSBLK_PARM_LEN] = "\0";
|
|||
static int dcssblk_major;
|
||||
static struct block_device_operations dcssblk_devops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = dcssblk_open,
|
||||
.release = dcssblk_release,
|
||||
.__open = dcssblk_open,
|
||||
.__release = dcssblk_release,
|
||||
.direct_access = dcssblk_direct_access,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@ static int tapeblock_revalidate_disk(struct gendisk *);
|
|||
|
||||
static struct block_device_operations tapeblock_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = tapeblock_open,
|
||||
.release = tapeblock_release,
|
||||
.ioctl = tapeblock_ioctl,
|
||||
.__open = tapeblock_open,
|
||||
.__release = tapeblock_release,
|
||||
.__ioctl = tapeblock_ioctl,
|
||||
.media_changed = tapeblock_medium_changed,
|
||||
.revalidate_disk = tapeblock_revalidate_disk,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue