[PATCH 2/7] iomap: remove superflous pagefault_disable from iomap_write_actor
Christoph Hellwig
hch at lst.de
Sat Aug 13 18:42:56 CDT 2016
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 at lst.de>
---
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
More information about the xfs
mailing list