diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-03-02 10:43:36 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-21 07:48:52 -0400 |
commit | 90b8f2824ce68dd87d304641a1d5a048dfff39f5 (patch) | |
tree | b55ddcb619aac1e16d845dd6796c51721dd6ee56 /fs | |
parent | 40cc51be699e37b78102ce7b2196ec9c32fe1908 (diff) |
[PATCH] end of methods switch: remove the old ones
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/block_dev.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 73b6ce47c861..55124ac8c7ad 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -1033,11 +1033,6 @@ static int do_open(struct block_device *bdev, struct file *file, int for_part) | |||
1033 | bdev->bd_contains = bdev; | 1033 | bdev->bd_contains = bdev; |
1034 | if (!partno) { | 1034 | if (!partno) { |
1035 | struct backing_dev_info *bdi; | 1035 | struct backing_dev_info *bdi; |
1036 | if (disk->fops->__open) { | ||
1037 | ret = disk->fops->__open(bdev->bd_inode, file); | ||
1038 | if (ret) | ||
1039 | goto out_first; | ||
1040 | } | ||
1041 | if (disk->fops->open) { | 1036 | if (disk->fops->open) { |
1042 | ret = disk->fops->open(bdev, file->f_mode); | 1037 | ret = disk->fops->open(bdev, file->f_mode); |
1043 | if (ret) | 1038 | if (ret) |
@@ -1079,11 +1074,6 @@ static int do_open(struct block_device *bdev, struct file *file, int for_part) | |||
1079 | part = NULL; | 1074 | part = NULL; |
1080 | disk = NULL; | 1075 | disk = NULL; |
1081 | if (bdev->bd_contains == bdev) { | 1076 | if (bdev->bd_contains == bdev) { |
1082 | if (bdev->bd_disk->fops->__open) { | ||
1083 | ret = bdev->bd_disk->fops->__open(bdev->bd_inode, file); | ||
1084 | if (ret) | ||
1085 | goto out; | ||
1086 | } | ||
1087 | if (bdev->bd_disk->fops->open) { | 1077 | if (bdev->bd_disk->fops->open) { |
1088 | ret = bdev->bd_disk->fops->open(bdev, file->f_mode); | 1078 | ret = bdev->bd_disk->fops->open(bdev, file->f_mode); |
1089 | if (ret) | 1079 | if (ret) |
@@ -1180,7 +1170,6 @@ static int blkdev_open(struct inode * inode, struct file * filp) | |||
1180 | static int __blkdev_put(struct block_device *bdev, int for_part) | 1170 | static int __blkdev_put(struct block_device *bdev, int for_part) |
1181 | { | 1171 | { |
1182 | int ret = 0; | 1172 | int ret = 0; |
1183 | struct inode *bd_inode = bdev->bd_inode; | ||
1184 | struct gendisk *disk = bdev->bd_disk; | 1173 | struct gendisk *disk = bdev->bd_disk; |
1185 | struct block_device *victim = NULL; | 1174 | struct block_device *victim = NULL; |
1186 | 1175 | ||
@@ -1194,8 +1183,6 @@ static int __blkdev_put(struct block_device *bdev, int for_part) | |||
1194 | kill_bdev(bdev); | 1183 | kill_bdev(bdev); |
1195 | } | 1184 | } |
1196 | if (bdev->bd_contains == bdev) { | 1185 | if (bdev->bd_contains == bdev) { |
1197 | if (disk->fops->__release) | ||
1198 | ret = disk->fops->__release(bd_inode, NULL); | ||
1199 | if (disk->fops->release) | 1186 | if (disk->fops->release) |
1200 | ret = disk->fops->release(disk, 0); | 1187 | ret = disk->fops->release(disk, 0); |
1201 | } | 1188 | } |