iomap: remove superflous pagefault_disable from iomap_write_actor
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Aug 2016 22:40:18 +0000 (08:40 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 16 Aug 2016 22:40:18 +0000 (08:40 +1000)
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 <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/iomap.c

index f39c3181fa108eda0bea8a8761966412ca307a43..74712e25184ba421a19034dfd832b1ddd5aa49cb 100644 (file)
@@ -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);