commit | 777eda2c5b84d6f3543f4aecbf4cd1f29b222a81 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Dec 17 04:46:46 2014 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Dec 17 06:43:56 2014 -0500 |
tree | 0d007920c70708c178b59051b1fbf34b6e689fb6 | |
parent | b1bc6d7f163234cad4f34e3f5dffde44b96369eb [diff] [blame] |
new helper: iter_is_iovec() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/mm/shmem.c b/mm/shmem.c index 185836b..73ba1df 100644 --- a/mm/shmem.c +++ b/mm/shmem.c
@@ -1536,7 +1536,7 @@ * holes of a sparse file, we actually need to allocate those pages, * and even mark them dirty, so it cannot exceed the max_blocks limit. */ - if (segment_eq(get_fs(), KERNEL_DS)) + if (!iter_is_iovec(to)) sgp = SGP_DIRTY; index = *ppos >> PAGE_CACHE_SHIFT;