Blame SOURCES/9002-Compat-Replace-copy_page_from_iter_atomic-by-iov_ite.patch
|
Kmods SIG |
d83023 |
From 3705e1ac8e76edc6edff937b6f9622eb9fd1938b Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
d83023 |
From: Peter Georg <peter.georg@physik.uni-regensburg.de>
|
|
Kmods SIG |
d83023 |
Date: Wed, 22 Sep 2021 22:31:23 +0200
|
|
Kmods SIG |
d83023 |
Subject: [PATCH 9002/9005] Compat: Replace copy_page_from_iter_atomic by
|
|
Kmods SIG |
d83023 |
iov_iter_copy_from_user_atomic
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
---
|
|
Kmods SIG |
d83023 |
src/file.c | 5 +++--
|
|
Kmods SIG |
d83023 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
diff --git a/src/file.c b/src/file.c
|
|
Kmods SIG |
d83023 |
index ee9a472..d89afcd 100644
|
|
Kmods SIG |
d83023 |
--- a/src/file.c
|
|
Kmods SIG |
d83023 |
+++ b/src/file.c
|
|
Kmods SIG |
d83023 |
@@ -1028,10 +1028,11 @@ static ssize_t ntfs_compress_write(struct kiocb *iocb, struct iov_iter *from)
|
|
Kmods SIG |
d83023 |
size_t cp, tail = PAGE_SIZE - off;
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
page = pages[ip];
|
|
Kmods SIG |
d83023 |
- cp = copy_page_from_iter_atomic(page, off,
|
|
Kmods SIG |
d83023 |
- min(tail, bytes), from);
|
|
Kmods SIG |
d83023 |
+ cp = iov_iter_copy_from_user_atomic(page, from, off,
|
|
Kmods SIG |
d83023 |
+ min(tail, bytes));
|
|
Kmods SIG |
d83023 |
flush_dcache_page(page);
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
+ iov_iter_advance(from, cp);
|
|
Kmods SIG |
d83023 |
copied += cp;
|
|
Kmods SIG |
d83023 |
bytes -= cp;
|
|
Kmods SIG |
d83023 |
if (!bytes || !cp)
|
|
Kmods SIG |
d83023 |
--
|
|
Kmods SIG |
d83023 |
2.31.1
|
|
Kmods SIG |
d83023 |
|