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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DD11C4338F for ; Thu, 5 Aug 2021 18:24:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 67A0A61154 for ; Thu, 5 Aug 2021 18:24:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241017AbhHESYw (ORCPT ); Thu, 5 Aug 2021 14:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241011AbhHESYw (ORCPT ); Thu, 5 Aug 2021 14:24:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5727CC061765; Thu, 5 Aug 2021 11:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7ZEtilizO2+Pq/XgaczvBZxUkMnqeoxhTTdNMd/Upys=; b=rD69JWPQ77F+RpxlOuXiLX8+ms pPoxsSeYzCB6md9pz+ZHu1zFjwPr5EaA5Mz4gnLSgqe2I+di4Mfjb3QRPNZ1/yP4V60+66ztpP502 TqPuO1CJI4sYGcn1xWwxXG+939qRy0m+Sk76GkjpCMWhxi3S4gnVxMermg9Hfiqrs8AnA0mmbokWX WbOgrIvAM9vyLP2k4xRs+09qTi9fLhaaFRok7tuHq64HTOsLRq5HzDTyvZDljbMjXFU6c3dJOLDj9 AQlExOFuQ1QcqaqgSt5z3Atqeq7WUdyHLj9Tlvv/VhwH7d0dbPrNn7df4FNOPilFtTWpYQL7V6mmd Vv5jDpUA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBi2e-007Nls-32; Thu, 05 Aug 2021 18:24:33 +0000 Date: Thu, 5 Aug 2021 19:24:28 +0100 From: Matthew Wilcox To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Alexander Viro , Thomas Gleixner Subject: Re: [PATCH 1/2] iomap: Use kmap_local_page instead of kmap_atomic Message-ID: References: <20210803193134.1198733-1-willy@infradead.org> <20210805173104.GF3601405@magnolia> <20210805173903.GH3601405@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210805173903.GH3601405@magnolia> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Thu, Aug 05, 2021 at 10:39:03AM -0700, Darrick J. Wong wrote: > Though now that I think about it: Why does iomap_write_actor still use > copy_page_from_iter_atomic? Can that be converted to use regular > copy_page_from_iter, which at least sometimes uses kmap_local_page? I suspect copy_page_from_iter_atomic() should be converted to use kmap_local_page(), but I don't know. generic_perform_write() uses the _atomic() version, so I'm not doing anything different without understanding more than I currently do.