summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-17 18:05:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-17 18:05:23 -0400
commitc2e7b207058d4ff6a9010430763fb561f307eb67 (patch)
tree8983947c4d62365de3d98113662ff9e643a42a0f /fs/9p
parentc52b76185b7a1b300e5f15ff871c8f45ced3dee9 (diff)
parent24368aad47dc65b45040d6a31bfd6df1d6f3ec97 (diff)
Merge branch 'work.preadv2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs cleanups from Al Viro: "More cleanups from Christoph" * 'work.preadv2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: nfsd: use RWF_SYNC fs: add RWF_DSYNC aand RWF_SYNC ceph: use generic_write_sync fs: simplify the generic_write_sync prototype fs: add IOCB_SYNC and IOCB_DSYNC direct-io: remove the offset argument to dio_complete direct-io: eliminate the offset argument to ->direct_IO xfs: eliminate the pos variable in xfs_file_dio_aio_write filemap: remove the pos argument to generic_file_direct_write filemap: remove pos variables in generic_file_read_iter
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_addr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c
index ac9225e86bf3..c37fb9c08970 100644
--- a/fs/9p/vfs_addr.c
+++ b/fs/9p/vfs_addr.c
@@ -245,9 +245,10 @@ static int v9fs_launder_page(struct page *page)
245 * 245 *
246 */ 246 */
247static ssize_t 247static ssize_t
248v9fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t pos) 248v9fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
249{ 249{
250 struct file *file = iocb->ki_filp; 250 struct file *file = iocb->ki_filp;
251 loff_t pos = iocb->ki_pos;
251 ssize_t n; 252 ssize_t n;
252 int err = 0; 253 int err = 0;
253 if (iov_iter_rw(iter) == WRITE) { 254 if (iov_iter_rw(iter) == WRITE) {