xfs
[Top] [All Lists]

[PATCH 2/7] iomap: remove superflous pagefault_disable from iomap_write_

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/7] iomap: remove superflous pagefault_disable from iomap_write_actor
From: Christoph Hellwig <hch@xxxxxx>
Date: Sat, 13 Aug 2016 16:42:56 -0700
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1471131781-14107-1-git-send-email-hch@xxxxxx>
References: <1471131781-14107-1-git-send-email-hch@xxxxxx>
iov_iter_copy_from_user_atomic disableÑ page fauls internal, 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@xxxxxx>
---
 fs/iomap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/iomap.c b/fs/iomap.c
index f39c318..74712e2 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);
 
-- 
2.1.4

<Prev in Thread] Current Thread [Next in Thread>