| 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> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 7/7] xfs: (re-)implement FIEMAP_FLAG_XATTR, Christoph Hellwig |
|---|---|
| Next by Date: | [PATCH 6/7] xfs: simplify xfs_file_iomap_begin, Christoph Hellwig |
| Previous by Thread: | [PATCH 7/7] xfs: (re-)implement FIEMAP_FLAG_XATTR, Christoph Hellwig |
| Next by Thread: | [PATCH 6/7] xfs: simplify xfs_file_iomap_begin, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |