diff options
Diffstat (limited to 'fs/fat/inode.c')
-rw-r--r-- | fs/fat/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 154a6f9d3189..385cce464e82 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -213,8 +213,7 @@ static ssize_t fat_direct_IO(int rw, struct kiocb *iocb, | |||
213 | * FAT need to use the DIO_LOCKING for avoiding the race | 213 | * FAT need to use the DIO_LOCKING for avoiding the race |
214 | * condition of fat_get_block() and ->truncate(). | 214 | * condition of fat_get_block() and ->truncate(). |
215 | */ | 215 | */ |
216 | ret = blockdev_direct_IO(rw, iocb, inode, iter->iov, offset, | 216 | ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, fat_get_block); |
217 | iter->nr_segs, fat_get_block); | ||
218 | if (ret < 0 && (rw & WRITE)) | 217 | if (ret < 0 && (rw & WRITE)) |
219 | fat_write_failed(mapping, offset + count); | 218 | fat_write_failed(mapping, offset + count); |
220 | 219 | ||