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