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.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 4F8D3C433E0 for ; Fri, 10 Jul 2020 06:51:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2BFF820672 for ; Fri, 10 Jul 2020 06:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbgGJGu7 (ORCPT ); Fri, 10 Jul 2020 02:50:59 -0400 Received: from verein.lst.de ([213.95.11.211]:42097 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgGJGu7 (ORCPT ); Fri, 10 Jul 2020 02:50:59 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1999E68BEB; Fri, 10 Jul 2020 08:50:55 +0200 (CEST) Date: Fri, 10 Jul 2020 08:50:54 +0200 From: Christoph Hellwig To: David Rientjes Cc: Nicolas Saenz Julienne , hch@lst.de, Robin Murphy , iommu@lists.linux-foundation.org, Marek Szyprowski , linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] dma-pool: Get rid of dma_in_atomic_pool() Message-ID: <20200710065054.GA19416@lst.de> References: <20200709161903.26229-1-nsaenzjulienne@suse.de> <20200709161903.26229-3-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 09, 2020 at 02:51:13PM -0700, David Rientjes wrote: > On Thu, 9 Jul 2020, Nicolas Saenz Julienne wrote: > > > The function is only used once and can be simplified to a one-liner. > > > > Signed-off-by: Nicolas Saenz Julienne > > I'll leave this one to Christoph to decide on. One thing I really liked > about hacking around in kernel/dma is the coding style, it really follows > "one function does one thing and does it well" even if there is only one > caller. dma_in_atomic_pool() was an attempt to follow in those footsteps. While I like the helper aswell, I don't see how it could work nicely with the changes in patch 4.