From: Christoph Hellwig Date: Tue, 16 Aug 2016 22:40:18 +0000 (+1000) Subject: iomap: remove superflous pagefault_disable from iomap_write_actor X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=274c887494cb248eb05f8180bda8298942d98625;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iomap: remove superflous pagefault_disable from iomap_write_actor iov_iter_copy_from_user_atomic disables page faults internally, no need to do it around the call. This also brings the iomap code in line with the original filemap version. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/fs/iomap.c b/fs/iomap.c index f39c3181fa10..74712e25184b 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -194,9 +194,7 @@ again: if (mapping_writably_mapped(inode->i_mapping)) flush_dcache_page(page); - pagefault_disable(); copied = iov_iter_copy_from_user_atomic(page, i, offset, bytes); - pagefault_enable(); flush_dcache_page(page);