From: Ira Weiny <ira.we...@intel.com>

The kmap() calls in this FS are localized to a single thread.  To avoid
the over head of global PKRS updates use the new kmap_thread() call.

Cc: Anton Altaparmakov <an...@tuxera.com>
Signed-off-by: Ira Weiny <ira.we...@intel.com>
---
 fs/ntfs/aops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c
index bb0a43860ad2..11633d732809 100644
--- a/fs/ntfs/aops.c
+++ b/fs/ntfs/aops.c
@@ -1099,7 +1099,7 @@ static int ntfs_write_mst_block(struct page *page,
        if (!nr_bhs)
                goto done;
        /* Map the page so we can access its contents. */
-       kaddr = kmap(page);
+       kaddr = kmap_thread(page);
        /* Clear the page uptodate flag whilst the mst fixups are applied. */
        BUG_ON(!PageUptodate(page));
        ClearPageUptodate(page);
@@ -1276,7 +1276,7 @@ static int ntfs_write_mst_block(struct page *page,
                iput(VFS_I(base_tni));
        }
        SetPageUptodate(page);
-       kunmap(page);
+       kunmap_thread(page);
 done:
        if (unlikely(err && err != -ENOMEM)) {
                /*
-- 
2.28.0.rc0.12.gb6a658bd00c9

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to