clk: samsung: exynos5433: Add clocks for CMU_AUD domain
[firefly-linux-kernel-4.4.55.git] / mm / shmem.c
index 185836ba53ef6e23a63b6a0de7c22ebae19eac0b..73ba1df7c8ba1bcf17f0ef2ee0930c13db56730e 100644 (file)
@@ -1536,7 +1536,7 @@ static ssize_t shmem_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
         * 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;