diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 218408eed1bb..8897f3b02e98 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -840,7 +840,7 @@ EXPORT_SYMBOL_GPL(bd_release_from_disk); | |||
840 | * to be used for internal purposes. If you ever need it - reconsider | 840 | * to be used for internal purposes. If you ever need it - reconsider |
841 | * your API. | 841 | * your API. |
842 | */ | 842 | */ |
843 | struct block_device *open_by_devnum(dev_t dev, unsigned mode) | 843 | struct block_device *open_by_devnum(dev_t dev, fmode_t mode) |
844 | { | 844 | { |
845 | struct block_device *bdev = bdget(dev); | 845 | struct block_device *bdev = bdget(dev); |
846 | int err = -ENOMEM; | 846 | int err = -ENOMEM; |
@@ -975,7 +975,7 @@ void bd_set_size(struct block_device *bdev, loff_t size) | |||
975 | } | 975 | } |
976 | EXPORT_SYMBOL(bd_set_size); | 976 | EXPORT_SYMBOL(bd_set_size); |
977 | 977 | ||
978 | static int __blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, | 978 | static int __blkdev_get(struct block_device *bdev, fmode_t mode, unsigned flags, |
979 | int for_part); | 979 | int for_part); |
980 | static int __blkdev_put(struct block_device *bdev, int for_part); | 980 | static int __blkdev_put(struct block_device *bdev, int for_part); |
981 | 981 | ||
@@ -1104,7 +1104,7 @@ static int do_open(struct block_device *bdev, struct file *file, int for_part) | |||
1104 | return ret; | 1104 | return ret; |
1105 | } | 1105 | } |
1106 | 1106 | ||
1107 | static int __blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, | 1107 | static int __blkdev_get(struct block_device *bdev, fmode_t mode, unsigned flags, |
1108 | int for_part) | 1108 | int for_part) |
1109 | { | 1109 | { |
1110 | /* | 1110 | /* |
@@ -1123,7 +1123,7 @@ static int __blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, | |||
1123 | return do_open(bdev, &fake_file, for_part); | 1123 | return do_open(bdev, &fake_file, for_part); |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags) | 1126 | int blkdev_get(struct block_device *bdev, fmode_t mode, unsigned flags) |
1127 | { | 1127 | { |
1128 | return __blkdev_get(bdev, mode, flags, 0); | 1128 | return __blkdev_get(bdev, mode, flags, 0); |
1129 | } | 1129 | } |
@@ -1315,7 +1315,7 @@ EXPORT_SYMBOL(lookup_bdev); | |||
1315 | struct block_device *open_bdev_excl(const char *path, int flags, void *holder) | 1315 | struct block_device *open_bdev_excl(const char *path, int flags, void *holder) |
1316 | { | 1316 | { |
1317 | struct block_device *bdev; | 1317 | struct block_device *bdev; |
1318 | mode_t mode = FMODE_READ; | 1318 | fmode_t mode = FMODE_READ; |
1319 | int error = 0; | 1319 | int error = 0; |
1320 | 1320 | ||
1321 | bdev = lookup_bdev(path); | 1321 | bdev = lookup_bdev(path); |