diff options
author | Christoph Hellwig <hch@lst.de> | 2016-08-17 00:40:18 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-08-17 00:40:18 +0200 |
commit | 274c887494cb248eb05f8180bda8298942d98625 (patch) | |
tree | 0554868d0be9433ccc3279d1adf42c2afae30d6d /fs | |
parent | iomap: remove superflous mark_page_accessed from iomap_write_actor (diff) | |
download | linux-274c887494cb248eb05f8180bda8298942d98625.tar.xz linux-274c887494cb248eb05f8180bda8298942d98625.zip |
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 <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/iomap.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |