summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-12-17 04:46:46 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-17 06:43:56 -0500
commit777eda2c5b84d6f3543f4aecbf4cd1f29b222a81 (patch)
tree0d007920c70708c178b59051b1fbf34b6e689fb6 /mm/filemap.c
parentb1bc6d7f163234cad4f34e3f5dffde44b96369eb (diff)
downloadlinux-stable-777eda2c5b84d6f3543f4aecbf4cd1f29b222a81.tar.gz
linux-stable-777eda2c5b84d6f3543f4aecbf4cd1f29b222a81.tar.bz2
linux-stable-777eda2c5b84d6f3543f4aecbf4cd1f29b222a81.zip
new helper: iter_is_iovec()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r--mm/filemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index e8905bc3cbd7..bd8543c6508f 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2464,7 +2464,7 @@ ssize_t generic_perform_write(struct file *file,
/*
* Copies from kernel address space cannot fail (NFSD is a big user).
*/
- if (segment_eq(get_fs(), KERNEL_DS))
+ if (!iter_is_iovec(i))
flags |= AOP_FLAG_UNINTERRUPTIBLE;
do {