From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEBB4E81E1F for ; Fri, 6 Oct 2023 18:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233248AbjJFSrM (ORCPT ); Fri, 6 Oct 2023 14:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbjJFSrE (ORCPT ); Fri, 6 Oct 2023 14:47:04 -0400 Received: from mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B31C18D for ; Fri, 6 Oct 2023 11:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1696617986; bh=RYszOFam6KVl1ypA3hz/Gcl2MPX05Hk70/Nt/veHpOM=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=F1xvBXAVWvtXxgW1QQNTe41Wrl1V8lgkOuvedF2t9O0VLnM/P4+c/KixHwe0EMhNF iVsVYf9i9rpf288wnN0fDJ++tNtL5+KqkRvkONOwM5R0Xpkry+Wuq0N0tan+ZP3yWB EAMt6nYiQZHghB6vvGwhbpkJyXeF/SiqIfLMS4Iw= Received: by b221-1.in.mailobj.net [192.168.90.21] with ESMTP via ip-20.mailobj.net [213.182.54.20] Fri, 6 Oct 2023 20:46:26 +0200 (CEST) X-EA-Auth: wLkTObUMxPeiTYFDpw6KkYlMjjTpxPawCOc5bmQzZOsGoLzdy2ksD4xiQuNg42zWt+KIKqlCXA9oIB3RokB0KAtS6XdsuVA+ Date: Sat, 7 Oct 2023 00:16:18 +0530 From: Deepak R Varma To: Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Ira Weiny , "Fabio M. De Francesco" Subject: kmap() transformation: Question about copy_user_highpage Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I am attempting to work on replacing the kmap[_atomic]() calls by kmap_local_page() function call. A detail on this change can be found here [0]. I would like to know if this function: arch/loongarch/mm/init.c::copy_user_highpage() is currently in use or is it a dead code? If this code is not in use, can this be removed instead? However, if it is in use, can you comment why kmap_atomic() was preferred over kmap() function call? [0] https://lore.kernel.org/all/20201029222652.302358281@linutronix.de/ Thank you, Deepak.