aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 0c361ea7e5a6..8c819117310b 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1162,14 +1162,6 @@ static ssize_t blkdev_file_write(struct file *file, const char __user *buf,
1162 return generic_file_write_nolock(file, &local_iov, 1, ppos); 1162 return generic_file_write_nolock(file, &local_iov, 1, ppos);
1163} 1163}
1164 1164
1165static ssize_t blkdev_file_aio_write(struct kiocb *iocb, const char __user *buf,
1166 size_t count, loff_t pos)
1167{
1168 struct iovec local_iov = { .iov_base = (void __user *)buf, .iov_len = count };
1169
1170 return generic_file_aio_write_nolock(iocb, &local_iov, 1, &iocb->ki_pos);
1171}
1172
1173static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg) 1165static long block_ioctl(struct file *file, unsigned cmd, unsigned long arg)
1174{ 1166{
1175 return blkdev_ioctl(file->f_mapping->host, file, cmd, arg); 1167 return blkdev_ioctl(file->f_mapping->host, file, cmd, arg);
@@ -1192,7 +1184,7 @@ const struct file_operations def_blk_fops = {
1192 .read = generic_file_read, 1184 .read = generic_file_read,
1193 .write = blkdev_file_write, 1185 .write = blkdev_file_write,
1194 .aio_read = generic_file_aio_read, 1186 .aio_read = generic_file_aio_read,
1195 .aio_write = blkdev_file_aio_write, 1187 .aio_write = generic_file_aio_write_nolock,
1196 .mmap = generic_file_mmap, 1188 .mmap = generic_file_mmap,
1197 .fsync = block_fsync, 1189 .fsync = block_fsync,
1198 .unlocked_ioctl = block_ioctl, 1190 .unlocked_ioctl = block_ioctl,