diff options
Diffstat (limited to 'fs/9p/vfs_addr.c')
-rw-r--r-- | fs/9p/vfs_addr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c index 2e38f9a5b472..be35d05a4d0e 100644 --- a/fs/9p/vfs_addr.c +++ b/fs/9p/vfs_addr.c | |||
@@ -230,7 +230,6 @@ static int v9fs_launder_page(struct page *page) | |||
230 | 230 | ||
231 | /** | 231 | /** |
232 | * v9fs_direct_IO - 9P address space operation for direct I/O | 232 | * v9fs_direct_IO - 9P address space operation for direct I/O |
233 | * @rw: direction (read or write) | ||
234 | * @iocb: target I/O control block | 233 | * @iocb: target I/O control block |
235 | * @iov: array of vectors that define I/O buffer | 234 | * @iov: array of vectors that define I/O buffer |
236 | * @pos: offset in file to begin the operation | 235 | * @pos: offset in file to begin the operation |
@@ -248,12 +247,12 @@ static int v9fs_launder_page(struct page *page) | |||
248 | * | 247 | * |
249 | */ | 248 | */ |
250 | static ssize_t | 249 | static ssize_t |
251 | v9fs_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t pos) | 250 | v9fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t pos) |
252 | { | 251 | { |
253 | struct file *file = iocb->ki_filp; | 252 | struct file *file = iocb->ki_filp; |
254 | ssize_t n; | 253 | ssize_t n; |
255 | int err = 0; | 254 | int err = 0; |
256 | if (rw & WRITE) { | 255 | if (iov_iter_rw(iter) == WRITE) { |
257 | n = p9_client_write(file->private_data, pos, iter, &err); | 256 | n = p9_client_write(file->private_data, pos, iter, &err); |
258 | if (n) { | 257 | if (n) { |
259 | struct inode *inode = file_inode(file); | 258 | struct inode *inode = file_inode(file); |