aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-06-12 13:30:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-12 13:30:18 -0400
commit16b9057804c02e2d351e9c8f606e909b43cbd9e7 (patch)
treea3ac6e1d9d57a8abf4267e5ead3f2de1309335eb /fs/ntfs
parent5c02c392cd2320e8d612376d6b72b6548a680923 (diff)
parentc2338f2dc7c1e9f6202f370c64ffd7f44f3d4b51 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro: "This the bunch that sat in -next + lock_parent() fix. This is the minimal set; there's more pending stuff. In particular, I really hope to get acct.c fixes merged this cycle - we need that to deal sanely with delayed-mntput stuff. In the next pile, hopefully - that series is fairly short and localized (kernel/acct.c, fs/super.c and fs/namespace.c). In this pile: more iov_iter work. Most of prereqs for ->splice_write with sane locking order are there and Kent's dio rewrite would also fit nicely on top of this pile" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (70 commits) lock_parent: don't step on stale ->d_parent of all-but-freed one kill generic_file_splice_write() ceph: switch to iter_file_splice_write() shmem: switch to iter_file_splice_write() nfs: switch to iter_splice_write_file() fs/splice.c: remove unneeded exports ocfs2: switch to iter_file_splice_write() ->splice_write() via ->write_iter() bio_vec-backed iov_iter optimize copy_page_{to,from}_iter() bury generic_file_aio_{read,write} lustre: get rid of messing with iovecs ceph: switch to ->write_iter() ceph_sync_direct_write: stop poking into iov_iter guts ceph_sync_read: stop poking into iov_iter guts new helper: copy_page_from_iter() fuse: switch to ->write_iter() btrfs: switch to ->write_iter() ocfs2: switch to ->write_iter() xfs: switch to ->write_iter() ...
Diffstat (limited to 'fs/ntfs')
-rw-r--r--fs/ntfs/file.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
index 86ddab916b66..5c9e2c81cb11 100644
--- a/fs/ntfs/file.c
+++ b/fs/ntfs/file.c
@@ -2090,10 +2090,7 @@ static ssize_t ntfs_file_aio_write_nolock(struct kiocb *iocb,
2090 size_t count; /* after file limit checks */ 2090 size_t count; /* after file limit checks */
2091 ssize_t written, err; 2091 ssize_t written, err;
2092 2092
2093 count = 0; 2093 count = iov_length(iov, nr_segs);
2094 err = generic_segment_checks(iov, &nr_segs, &count, VERIFY_READ);
2095 if (err)
2096 return err;
2097 pos = *ppos; 2094 pos = *ppos;
2098 /* We can write back this queue in page reclaim. */ 2095 /* We can write back this queue in page reclaim. */
2099 current->backing_dev_info = mapping->backing_dev_info; 2096 current->backing_dev_info = mapping->backing_dev_info;
@@ -2202,8 +2199,8 @@ static int ntfs_file_fsync(struct file *filp, loff_t start, loff_t end,
2202 2199
2203const struct file_operations ntfs_file_ops = { 2200const struct file_operations ntfs_file_ops = {
2204 .llseek = generic_file_llseek, /* Seek inside file. */ 2201 .llseek = generic_file_llseek, /* Seek inside file. */
2205 .read = do_sync_read, /* Read from file. */ 2202 .read = new_sync_read, /* Read from file. */
2206 .aio_read = generic_file_aio_read, /* Async read from file. */ 2203 .read_iter = generic_file_read_iter, /* Async read from file. */
2207#ifdef NTFS_RW 2204#ifdef NTFS_RW
2208 .write = do_sync_write, /* Write to file. */ 2205 .write = do_sync_write, /* Write to file. */
2209 .aio_write = ntfs_file_aio_write, /* Async write to file. */ 2206 .aio_write = ntfs_file_aio_write, /* Async write to file. */