Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1752045ybg; Sat, 19 Oct 2019 01:44:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx6rHWuhxAIKlirUcDsTxaLxZPH/MFhWHzu6vS+biBdxPknm4MOEzhufpqhf3tmD87OJYc X-Received: by 2002:a17:906:64e:: with SMTP id t14mr12620964ejb.75.1571474682809; Sat, 19 Oct 2019 01:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474682; cv=none; d=google.com; s=arc-20160816; b=przc8Aw35NXEA9M3VuTQAVseIgKNTIR0c3g3MKX6E2O1wW3hG6qa65kaOPbI8mD21j Zvi+n+K/4SrkhcI4m+2v1IC+0kanmnhiaHZkCcOoPCAlzfImwQIbsp489w6UxxsPmYvT /EMZkSUy63xrg6lzkBZhdfOYuNZraceg/G4T+lMmqWyPS19J5aWzK24d8TadFXptiT6M DJNTGwwsafAIO1pG2+gDEX0jiCtph8w5S+noKBgksKth72/s9U79xgMZyrUPF62SkAlv IfO/Gce1QAg+zRkjw/pYBmap37IMEsUBI25AeZEq7rm0HY4UeLgye23ZP0ymbUaTv4oo zHbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c+Y4hXBrATeNY/3cK81vXDxv8+6uxZrDXzoHPDjQStk=; b=xyF6lEO9ebhtYdApmZnsDVwJhYR4baMkHFO0UMiEam15fSCNfPXJ5Q6+LwA09ztZAs SikixdEBLIkO6e9AeZtgjwpHBEjifEAA3Gk61NILu8I56+qLv1ABoEyBzJ/2/XY6mNOW NGIfFgsRkxrWG+od6YijjETTE1T2BrBdY6FVhX2vpN44TgiTSxuczlJS9B35gCoG6ECr r0FmGUAjJwFeQlHNhReEWeNuUMbUYWsUiCfcM7ZiTt2mbSeMs1ymAmuj5W9KE2qBqoQu r/V6wt1Psh0VyQuq3E1u19icgG38b9pbbPEYynuyjQoIOuZkJ+5z8tQVDKPvOfqf79dg 8BgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=G6xE3Ft2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si5787533edc.153.2019.10.19.01.44.19; Sat, 19 Oct 2019 01:44:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=G6xE3Ft2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634315AbfJRQci (ORCPT + 99 others); Fri, 18 Oct 2019 12:32:38 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44612 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392259AbfJRQc1 (ORCPT ); Fri, 18 Oct 2019 12:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=c+Y4hXBrATeNY/3cK81vXDxv8+6uxZrDXzoHPDjQStk=; b=G6xE3Ft2lhAFumpDeSWw0MUnh woneqZpDH0FD1kPmuRoyk8/n/08m8ja6QA2dW5guNsFR0vdbpVZ1mdFk9X3P9xSpG/vsg6KoFdeCl BU38bF1RDrYoqhA0hEJp6HStAZLoR+MPLno3uwCsiY1OYOsO6Z/RhEznGqavDAa7udcG2oHeYt+M3 94K+2mWnUJ2dRPizTd/qlpwpRGxjBhH5aw4TjQV1Y6lpItqX9uoWNGyxDjQJ3TH4y12NNovcLkTS0 k4YHfYXHjVTO5pQyIsDvZZo71JuszSrH6FswOoydRo3VQW459UP1pIldjlOMnsnDPlgKUQYcdZw53 78JNC/aEg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLVAs-0000wA-8s; Fri, 18 Oct 2019 16:32:22 +0000 Date: Fri, 18 Oct 2019 09:32:22 -0700 From: Christoph Hellwig To: Philippe Liard Cc: phillip@squashfs.org.uk, linux-kernel@vger.kernel.org, groeck@chromium.org Subject: Re: [PATCH] squashfs: Migrate from ll_rw_block usage to BIO Message-ID: <20191018163222.GA32033@infradead.org> References: <20191018010846.186484-1-pliard@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018010846.186484-1-pliard@google.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I don't see why you still need buffer_heads at all. Basically if you replace each of your allocated buffer heads with a simple page allocation the code will be much simpler (this version adds more than 100 lines of code!) and probaby still a bit faster as you don't need the squashfs_bio_request allocation either.