Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp508114iog; Wed, 15 Jun 2022 06:50:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u3lOy2K1EnKPDgQaQTdW9AkMtBFi7h1J6DBUR3nchpEJ7irYEK+byYsFb5kf+8hFOAS/Lc X-Received: by 2002:a05:6402:1941:b0:413:2822:9c8 with SMTP id f1-20020a056402194100b00413282209c8mr13173018edz.13.1655301048241; Wed, 15 Jun 2022 06:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655301048; cv=none; d=google.com; s=arc-20160816; b=UuOW85QXwFd8SNp8uht867/LsURiEduCi62gjcNnwnWsZvCh8dbgcNzKoJ4qYw+Nd9 RxL7/bsEEdcEDYjQWQny6vL0BvHe5XpGOv9de24z1NEqgXr2wI8s3p716Ty5+6ZejuDl m2hlEDDcmeZqsNJ9xVMqv+jOhlqNL6o/ylXH44v0v68wxnAwY6PBokgATjES1SAfXbEB lptAS6goK8vso8U4uEo/mMeHvXwNXbGF6C2GjBnYMGRcATKkGOqLNsN/yt4b9YxAr7fl iKYe9bJC8dGVpc6uzo4aBxTJsm7vXRv7bMIxrGMwUAJ5q1/GLoPKhyef/ZAsZ0sBs0gT Q/QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=chlBcacfv6bDY7l9ADHEqVc0e2MMXp3Bc7SWxZo9lOw=; b=zs13mTDRc08RM69inswgoouldP8TRtS5srXrwXBdq1SkzVK4bU87Essaw0uK7/im0U 6Gk9QAwSReplWPIY4AW9LaX1DUhvmn1ImxylAuQRC1SGY5hnhYFWTfVGMyGNlE45RYvt 3Ev5NPXbbs+VvdoAgDNJH+edzYs44j3MGfbSAR/AxpBBiLmmr6RzQS0A7M19Lx3htby9 Jm2QK17xz361etV81VmZPTFoZVqf2hkuLIOFeEMTKYnn+hoUQxRjG5I1Jh5uWOPbB6fu yjWNAZp4zlan9sGu7ciRRFllAqT1NNDiYvk4s8hK3ESk5XEtYSguXHvzPABa8D2PGlng HPtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=qG1a3bJ0; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb25-20020a1709071c9900b006fe10d6262bsi17303726ejc.500.2022.06.15.06.50.18; Wed, 15 Jun 2022 06:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=qG1a3bJ0; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352852AbiFONhA (ORCPT + 99 others); Wed, 15 Jun 2022 09:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351808AbiFONg6 (ORCPT ); Wed, 15 Jun 2022 09:36:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D17369DD; Wed, 15 Jun 2022 06:36:58 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E90701F8D4; Wed, 15 Jun 2022 13:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655300216; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=chlBcacfv6bDY7l9ADHEqVc0e2MMXp3Bc7SWxZo9lOw=; b=qG1a3bJ0rpAB27MsxPCkGdch35hSj6iNBr5c0hoi9DFBJfjLdL+sBrPLSGV0WWXGt3SkN1 IlgZAepRPquKFQSjkVnBgwjgfLsFqY8H8OnyxZ+MAj0t6s5CK5svYLv7VpRMqhjGge+xLA NqJ7tjgY5bsm5aoiakQT4bPrhwinWz4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655300216; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=chlBcacfv6bDY7l9ADHEqVc0e2MMXp3Bc7SWxZo9lOw=; b=Tjphs/8pNqlDTkMTnuIL7gBZXnuK8rvaj8fb/ly6sHd42M/N20junSgmyyzJfj2P+uEywV rEBYjrUVncefjCBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 99E4913A35; Wed, 15 Jun 2022 13:36:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0Gn1IXjgqWJgKAAAMHmgww (envelope-from ); Wed, 15 Jun 2022 13:36:56 +0000 Date: Wed, 15 Jun 2022 15:32:22 +0200 From: David Sterba To: Ira Weiny Cc: "Fabio M. De Francesco" , David Sterba , Andrew Morton , dsterba@suse.cz, Chris Mason , Josef Bacik , Nick Terrell , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Filipe Manana Subject: Re: [PATCH] btrfs: Replace kmap() with kmap_local_page() in zstd.c Message-ID: <20220615133222.GZ20633@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Ira Weiny , "Fabio M. De Francesco" , David Sterba , Andrew Morton , Chris Mason , Josef Bacik , Nick Terrell , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Filipe Manana References: <20220611135203.27992-1-fmdefrancesco@gmail.com> <1936552.usQuhbGJ8B@opensuse> <20220614142521.GN20633@twin.jikos.cz> <8952566.CDJkKcVGEf@opensuse> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 14, 2022 at 10:07:34AM -0700, Ira Weiny wrote: > On Tue, Jun 14, 2022 at 06:28:48PM +0200, Fabio M. De Francesco wrote: > > On marted? 14 giugno 2022 16:25:21 CEST David Sterba wrote: > > > On Tue, Jun 14, 2022 at 01:22:50AM +0200, Fabio M. De Francesco wrote: > > > > On luned? 13 giugno 2022 20:39:13 CEST David Sterba wrote: > > > > > On Sat, Jun 11, 2022 at 03:52:03PM +0200, Fabio M. De Francesco > > > > > [snip] > > > > > A better solution is changing the prototype of __kunmap_local(); I > > > > suppose that Andrew won't object, but who knows? > > > > > > > > (+Cc Andrew Morton). > > > > > > > > I was waiting for your comments. At now I've done about 15 conversions > > > > across the kernel but it's the first time I had to pass a pointer to > > const > > > > void to kunmap_local(). Therefore, I was not sure if changing the API > > were > > > > better suited (however I have already discussed this with Ira). > > > > > > IMHO it should be fixed in the API. > > > > > I agree with you in full. > > > > At the same time when you sent this email I submitted a patch to change > > kunmap_local() and kunmap_atomic(). > > > > After Andrew takes them I'll send v2 of this patch to zstd.c without those > > unnecessary casts. > > David, > > Would you be willing to take this through your tree as a pre-patch to the kmap > changes in btrfs? > > That would be easier for Fabio and probably you and Andrew in the long run. Yes, no problem if the patch has an ack. I could probably send all the kmap conversions after tests so it does not need to wait until the next cycle.