Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1262006iob; Thu, 19 May 2022 02:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFUh59CuS0OYg0QtZpzZjLFkWT8BnNmlvapl/2zcbvneeieJzYbImHHlQ9Miuqmvf8iuG+ X-Received: by 2002:a63:b25d:0:b0:3f6:5842:2685 with SMTP id t29-20020a63b25d000000b003f658422685mr84387pgo.363.1652954187118; Thu, 19 May 2022 02:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652954187; cv=none; d=google.com; s=arc-20160816; b=EWaHutVLn31vUgFqxnuqb+TQFHeVMgwTa7bX45S6LK8XXJxU3RB9AV4Mea+AhpH0+U 02BGK5b1cftoG3oQJ1Tz97GHVybIY4BJmevPdfu9nQrOGm1onuD1sJB8LuB6U5LxK+T0 rOdtyUxMhlhMNAepqGvHatT2+5Y0hZfdiUgN1EDt2VqG6cGfNgXogTn0pFIrheL84yFa EB0/zW9T1Tcwo2NtPz4ZVWhky7CZwYxYZSPhxuBgRmfMf8xgfaZtPVxdab8DqgnyDf/U VpHruU3idockqZA5rWJel85Tu8b4jAKKmwLuT9l84ZaH4R4veeDHwN4czIkA3ie+oBju 1FNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/sVrKXlJiB/91I00QzAeuxvXVjT/UwmC0od05LnN4Ac=; b=LGq/oJSg+wLA/XhndynwhaAPohvgDMsR9/vxn1MoJXUCe0Bv+PF42qUu9S1k2uDwen 7LD6lJ0GAewVTak1Qu5J77wgRhiesFdAnHNlvYend4Wjp1p+j+28JFy0YlJTaYc0rh2N c4iPgMDMOcrPW0jsokE3tcpJ5ofS7MfO7AOdE+pGjchZ9dtWmhfHZramWXPYsuxRG8pk I7aNHzOclD6nGByCaSGNM7UDLpD3WRP5tmoI3Q6Cs1RZMvebb5R/OQ3nKyErCnJ+7CPj E+IAUP1VMXZ+3IRvE8UpTedEBJSkC3VuF3+xB+PN4Mt2SfZgkp3PFbawkFTeuMduve/r mEWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AC38FJV1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w34-20020a634922000000b003c63bf66bcesi5959535pga.685.2022.05.19.02.56.14; Thu, 19 May 2022 02:56:27 -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=@chromium.org header.s=google header.b=AC38FJV1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231473AbiESH4i (ORCPT + 99 others); Thu, 19 May 2022 03:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiESH4g (ORCPT ); Thu, 19 May 2022 03:56:36 -0400 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F221134B9B for ; Thu, 19 May 2022 00:56:34 -0700 (PDT) Received: by mail-ua1-x935.google.com with SMTP id r22so1719775ual.3 for ; Thu, 19 May 2022 00:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/sVrKXlJiB/91I00QzAeuxvXVjT/UwmC0od05LnN4Ac=; b=AC38FJV1YuWB/BkOesEaJHr3dzZ7Q+idSrisH07SMypwxIVbFNgVBSAdRRwR3tLqyk qfwgle2EbFIcdL92L8m3UrgASGG3WjWvXdWGzUO6PmhiMO7x/iJjuIekVu9gHlvVMtze 7TzqphYNHEBRTsUOi381kY0v85l/9awSZo/BE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/sVrKXlJiB/91I00QzAeuxvXVjT/UwmC0od05LnN4Ac=; b=HB+YTL5QuWlXis5EJ82x0DX0I3Ti1QHDuvUWeO3PhHMD97F6qGz/SuHApFNJ/XBJJX nQvsIiVGX7ak0A0/M2Qban8xi0PsLXl8ihk/mDilkTAFujVqeYMiYo7QA+5P3v+5G9x0 uhlHA/ojwTOy5ogfyb76NJ3d4SwKdZEsfwt5C6wyzZgBdNkW1RfQGgwRnopVMZuo65d1 HNnvuixWU/ont0VLb59c7Ku+nCeKPXzAvi5i29oTpYT/I9fGuMI2Y82MCkRfSNpnVFzq eXKqsPub0/IwBE3UFLTax1qJJWvt9WNHtoQMyAAmNq7DZSOTH0RsX5gc8eqLgwERMUUC SEbg== X-Gm-Message-State: AOAM531uj308z5OQnhVFK9Knw0i34wEXtnBpNRaWsWpjgSYyLrjXk08i CKGF35KL578SSvrFPGpux4mbhLsoK/YM0ZsV10uwkw== X-Received: by 2002:ab0:3492:0:b0:368:b577:bfd with SMTP id c18-20020ab03492000000b00368b5770bfdmr1449813uar.110.1652946993961; Thu, 19 May 2022 00:56:33 -0700 (PDT) MIME-Version: 1.0 References: <20220517082650.2005840-1-hsinyi@chromium.org> <20220517082650.2005840-4-hsinyi@chromium.org> In-Reply-To: From: Hsin-Yi Wang Date: Thu, 19 May 2022 15:56:08 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] squashfs: implement readahead To: Xiongwei Song Cc: Phillip Lougher , Matthew Wilcox , Xiongwei Song , Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , Andrew Morton , "linux-mm @ kvack . org" , "squashfs-devel @ lists . sourceforge . net" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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, May 17, 2022 at 5:17 PM Xiongwei Song wrote: > > On Tue, May 17, 2022 at 4:28 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. > > 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 > > "xiongwei.song@windriver.com" too. > ack.