Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5167352ioo; Tue, 31 May 2022 22:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtkaGSHqYO/xPYEPClvftJm/PxEKIpofBy9GTEhyLTbzOSUsxdLF5N/fsUCyQQa5cpeLty X-Received: by 2002:a17:907:a422:b0:705:e944:fd3e with SMTP id sg34-20020a170907a42200b00705e944fd3emr2322633ejc.309.1654062260939; Tue, 31 May 2022 22:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654062260; cv=none; d=google.com; s=arc-20160816; b=LaeJ7hqrxdwQuW6I9bupJ842qfbQsAfv/PfWSVaa6Z70b7+fBslsOic8Po8kSLbsjP PThOh8opL7DXC1y4BB252IORyWI8xAZ0wpnQZA/gt32ChJ5LKGPWJpD7uig1FEU9v2g9 t2Mt47JXPGmgTLuWrgT0bW8CMlrEVlDBAbbZqMIScQw6qOB28uuzrCfaeHQQYxlplORY nWGAuepbKctPRtgxvxSKPVMeSpGHLIjMYzMNx4O1VMcNiZdUM/EQ8/6kIo0hjCrwxGkl rqWQGF8SsjOpUZmlNv3qZtKX7qQBiQW5H3gf+qdFTl+AOfjoj51JtO6tRXuxIblEJfqa UFAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6TpHBFX9leZgiOseRXyBQRR5JRSIQxwZNAQKQwrdPUo=; b=gNZo9j2LJ4xAcAN6HoKO4XFdJfSXBx1rFDHHe0WYxEnnbzRz6bT4Rwsoea/oxoPF4w 6HIzGhpNrZKAhi3niuD8rlu6Su3qmNzImRK5NSWyTHkyv9XcNwJaFALzailAWGs6df6/ UI8TgcZue6qcY1NvRR18aD/tFfHUJ6eHE/4br/9LVAmN/ebX1lTO/bYVySRzJCf9WC9G NpY6EOHtDCRUh+vyTtciUIAfayV05t70QMKMOo0/21bHs+soQTExLvZOa9VhQzmMVcrJ /FhZWdVX8hZBz7YJa9QLv6Hya12nVHMmtz0VV9cFglYdTG+D3givJh9kTUuNm1UBcGlY spDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=mI3a0M2J; 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 x13-20020a170906148d00b006f37fd71fe2si724284ejc.387.2022.05.31.22.43.42; Tue, 31 May 2022 22:44:20 -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=@linux-foundation.org header.s=korg header.b=mI3a0M2J; 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 S1347875AbiEaUsS (ORCPT + 99 others); Tue, 31 May 2022 16:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347877AbiEaUsN (ORCPT ); Tue, 31 May 2022 16:48:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B53517FB for ; Tue, 31 May 2022 13:48:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D11AC612FD for ; Tue, 31 May 2022 20:48:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7333C385A9; Tue, 31 May 2022 20:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654030090; bh=ysy0TefitjEGZN/cpuj1jy1DC0AsC3nMzkC1TZQoJA0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mI3a0M2JvTvh3EKbICw3GdfOV/NwYO3Wuzq3OPGLHFYTVOoom6OAoKDIvN63xzYWp qZG8Yb3djUJRrmNZXwSRlSUqyaCr54hm9rs3Bo64ao7QhWFZ037eetzoLl9uRTWwSp kcqTUtym8YOCtTjk0+Y0MViqyTFFUO4xhFQpvdYU= Date: Tue, 31 May 2022 13:48:09 -0700 From: Andrew Morton To: Hsin-Yi Wang Cc: Phillip Lougher , Matthew Wilcox , Xiongwei Song , Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , "linux-mm @ kvack . org" , "squashfs-devel @ lists . sourceforge . net" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] squashfs: implement readahead Message-Id: <20220531134809.c69b711dc8cd584b3a5163f7@linux-foundation.org> In-Reply-To: References: <20220523065909.883444-1-hsinyi@chromium.org> <20220523065909.883444-4-hsinyi@chromium.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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, 31 May 2022 17:51:11 +0800 Hsin-Yi Wang wrote: > On Mon, May 23, 2022 at 3:00 PM Hsin-Yi Wang wrote: > > > > Implement readahead callback for squashfs. It will read datablocks > > which cover pages in readahead request. For a few cases it will > > not mark page as uptodate, including: > > - file end is 0. > > - zero filled blocks. > > - current batch of pages isn't in the same datablock or not enough in a > > datablock. > > - decompressor error. > > Otherwise pages will be marked as uptodate. The unhandled pages will be > > updated by readpage later. > > > > Suggested-by: Matthew Wilcox > > Signed-off-by: Hsin-Yi Wang > > Reported-by: Matthew Wilcox > > Reported-by: Phillip Lougher > > Reported-by: Xiongwei Song > > --- > > Kindly ping on the thread. Conversations on v2: > https://patchwork.kernel.org/project/linux-mm/patch/20220517082650.2005840-4-hsinyi@chromium.org/#24869037 > This version mainly addressed the error handling. Yes, some reviewer input would be helpful please.