Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1010932rdb; Sun, 20 Aug 2023 12:49:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFp05LmCv+MryxVHwKomgXeRPAWGfwC3w1yBLnfkCUF1T7dA+LVulWUGhwjqiEurEFcFVzO X-Received: by 2002:a05:6e02:927:b0:345:79eb:e001 with SMTP id o7-20020a056e02092700b0034579ebe001mr6755657ilt.19.1692560972820; Sun, 20 Aug 2023 12:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692560972; cv=none; d=google.com; s=arc-20160816; b=YINQQAQ65YjcVM81DHBOW2b/GB/iirMt1/eWRqjWsoB+5QggtPTP8jL58eMkoigBEl xmC8TnrbOBWwLzifzNUKla/ydYvULsjuqRS9sx5un/DDE9Dupno71NgM8h8kmG2Yevxi aANWD5HBGn3YoYXoc2nMC8boAERaF8GH650PftxFbe6aDS0oxSJgkmF/zWmrp2J2FP8n Wq/Zbfftvyi0SgMl3PFg6Xih+bgygJeCYwHBozI03glmVnGlybHJ2RNbfj6eG5pds08C iMOtujUx0WmdtqAy1ZTXDqeO4+ql/LqyaxH4BhnqzTGFjLgsdgPbvcSA6u8qwdedGnFS 5H8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=6h9aonqmeDneHn2sCJ+4YLuPQmV9DjwIRMJXM+2v704=; fh=0bsXllkiV5AO0b0DJm8cIfx+JekGFJe9gQYBFn3kx5M=; b=O21JKcbs4P01VShNWazyHaNgR50tCRgpY8fICv9POkgiqe0VSE5ZglmYmfoz3YcOv8 QCai6kX6VjuMHVNMQJMUFZgj2MM377MOneqNJ3JwUmD7TGTK5hBDZmuLdVeWCVhh6Q3z Ziz0g/WG7f+DnNlaB+HteA1c+vUaPJdOAQ8r94dFZzKmIy7kq9PQ/m58aoOpiIbRVLSa rRxv6WwN0du32VBQkj2YiVeE3lwshqFcWZqJCxj14ZK5r7tZU0WVXDJVmPzbtVgtSqy/ /+oBCOLUHqFf87r4qoIpEZELx09umMsHn5BHJhKNBUWoTpqO/BY7TPqY6WEJrJOnA3s+ 8h0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LlVviMhC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s10-20020a65690a000000b005645d9a89d6si5388877pgq.554.2023.08.20.12.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 12:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LlVviMhC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E0BA141D130; Sat, 19 Aug 2023 12:27:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237298AbjHOMws (ORCPT + 99 others); Tue, 15 Aug 2023 08:52:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237299AbjHOMwS (ORCPT ); Tue, 15 Aug 2023 08:52:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A869AE5 for ; Tue, 15 Aug 2023 05:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692103893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6h9aonqmeDneHn2sCJ+4YLuPQmV9DjwIRMJXM+2v704=; b=LlVviMhC7rpIfFDEHuI4hUkok7ggB0trWxY9u648d/35mkLjGjrWS+AK/fNSKr+yn7szrV Vfd9TIi4ypnnOo9sdxPJ/CMQ/k4l7jr6AxsP1QO06mjkNxY0M7TssUc8eQxOfSCAdJsyyJ fq7KbToovXyrBadWgQXyr2+ujV6Rdqg= Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-qBAZoA6cNmWTtYvAFtxRoA-1; Tue, 15 Aug 2023 08:51:32 -0400 X-MC-Unique: qBAZoA6cNmWTtYvAFtxRoA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 576E33C108C9; Tue, 15 Aug 2023 12:51:31 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id C3E4B140E917; Tue, 15 Aug 2023 12:51:29 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <3710261.1691764329@warthog.procyon.org.uk> To: David Laight Cc: dhowells@redhat.com, Alexander Viro , Jens Axboe , Christoph Hellwig , Christian Brauner , Matthew Wilcox , Linus Torvalds , "jlayton@kernel.org" , "linux-block@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH] iov_iter: Convert iterate*() to inline funcs MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <286906.1692103889.1@warthog.procyon.org.uk> Date: Tue, 15 Aug 2023 13:51:29 +0100 Message-ID: <286907.1692103889@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 David Laight wrote: > Actually quite typical because inlining happens much later on. > I suspect that the #define benefits from the compile front-end > optimising constants. I managed to mostly pull it back, and even make some functions slightly smaller, in the v2 I posted. Mostly that came about by arranging things to look a bit more like the upstream macro version. David