Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3273977iob; Mon, 16 May 2022 17:51:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdbyQEjca2LxRGrU7+akgEYtobKGPxH43I935duKH7FSt4+3v0oYKhf1UU6mRR/FuVP277 X-Received: by 2002:a63:91ca:0:b0:3c6:2d31:6d7 with SMTP id l193-20020a6391ca000000b003c62d3106d7mr17664128pge.559.1652748707810; Mon, 16 May 2022 17:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652748707; cv=none; d=google.com; s=arc-20160816; b=H/qGyq6yQuzJCXTZihiAGF2DyTxKxOx0jeCgyn5ykDFonc+PGiZ1Owjz3W2oZ9cvEk ifjGro57BfKD02K/5YeSIFXsU1z5ZKwMInTXhNW7gsogjsT2/iK76x9EPCZ4EjWuh+6q NLMW6SzswWvxk1sswFsi/+ONSpOpXnsNCjX7oaownn+l/wwQiXjXA4nTRw6aZOIuDnLg UYnz2EjB3zpOas+tmAlr4bL9LfYGkmZhdvDkeu5Rx6DLJOX4CqgkQlk+D/6Alav9khcx iN9z2yMwct1UeIoYIRh61t6WZ9y8xjGJAyOxXsidJRRn0ZmCY+eSCVL8KuvLd+zVj5jX ea3w== 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=cyzBmAuy85hTG407fSwXszxBhDeY0JEI9Vsim/drlp0=; b=PVFseMP5OONPWitUwfYjZ7Nr64yBo5S/OeVplBosusdyhS1E5vYQ6YwHDCLoyR5I/c tviVe27zoTZZuuhDmQivEoycQzzppIoYuRmXPMf2uWN2r5FNwrnJ6EKNqAth2fMDazBC 2Jgouh7hEqQFkQUAx2PWPBDXvVULqmciqUijKWYuCoRJvt8sUK/f2dbZLvDJ72fA59IX L+GOVUJ9yrEI2hOfE6UyrXtRg2vq4dijnuA37OXJkj7Ph+86Qf2e8cIXZqkUPxzFf7Xt VtxyY8ddfD1Xr66ufktbF0+u8jVfx3QP1VmFNARyI7zq3HrAklGgYPMbYW1+7Sa6VNS5 rxEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fYHp5Ibg; 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 r23-20020a635157000000b003db58036fb2si4959162pgl.755.2022.05.16.17.51.36; Mon, 16 May 2022 17:51:47 -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=fYHp5Ibg; 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 S239829AbiEPKrc (ORCPT + 99 others); Mon, 16 May 2022 06:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237017AbiEPKrb (ORCPT ); Mon, 16 May 2022 06:47:31 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2120FDFDE for ; Mon, 16 May 2022 03:47:29 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id m203so7261091vke.13 for ; Mon, 16 May 2022 03:47:29 -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=cyzBmAuy85hTG407fSwXszxBhDeY0JEI9Vsim/drlp0=; b=fYHp5Ibgf6MU75g8M8dbc1iSHzvS5K4/hMPc3yTsfMlxDqqNFVmGAcoDLdOXY1uZhe kxXLoaC7sVNiyhGnqUUD2FPW4gu/Yr0Y4tvBzGtbxoBJiAr0NwSXfatjNeQaTMUYNbCF u9IV+SW0L+bO2nvFYGIzQla+Mqp+mz/O9Wa8o= 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=cyzBmAuy85hTG407fSwXszxBhDeY0JEI9Vsim/drlp0=; b=TIEs6c+zP0XHwN9mls6zSi+GHXRmnrW7ms36Ac2+ahzkVXlHu4X3abK+WACWvzJRrT o2uJlzBzG+ecGlBhFcR6q0az8fTpsKYaoleQUrUJWZZT9f8xdS/lJ2BmccurSnAikTVU wuk8gR6p6OkUZVm3zJF63DVy46Gt+cFdSF/XY3DCnJgtkROyffsjaYk5iqBQB1VXj54P QljpNYx/vJ6syv+iZRe/gF/Y9tDUM0Qi4BYvgARRnGC0BYH1QI8cEyEZ732gT6lqcrmV jeDUKB7b3vmGXBJSIXvie+bNzkdKqrv4dfgNjoBWi4uiJXDFPT4UyOzB8AFullRxrBR+ XvVw== X-Gm-Message-State: AOAM531VMomm8J+bZg/g2shRIHIwx3tWLk7bPE6QVxGvtr/aatDelehF HU2X2pID2OyqJ6OLat0d8Jp+0Oqz3dV2/xahNMft2w== X-Received: by 2002:a05:6122:da8:b0:331:3b30:8b40 with SMTP id bc40-20020a0561220da800b003313b308b40mr5718489vkb.30.1652698048140; Mon, 16 May 2022 03:47:28 -0700 (PDT) MIME-Version: 1.0 References: <20220516104209.1407388-1-hsinyi@chromium.org> In-Reply-To: <20220516104209.1407388-1-hsinyi@chromium.org> From: Hsin-Yi Wang Date: Mon, 16 May 2022 18:47:02 +0800 Message-ID: Subject: Re: [PATCH 0/3] Implement readahead for squashfs To: Phillip Lougher , Matthew Wilcox , Xiongwei Song Cc: Zheng Liang , Zhang Yi , Hou Tao , Miao Xie , Andrew Morton , "linux-mm @ kvack . org" , "squashfs-devel @ lists . sourceforge . net" , linux-kernel@vger.kernel.org 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 Mon, May 16, 2022 at 6:42 PM Hsin-Yi Wang wrote: > > Commit c1f6925e1091("mm: put readahead pages in cache earlier") requires > fs to implement readahead callback. Otherwise there will be a > performance regression. > > Commit 9eec1d897139("squashfs: provide backing_dev_info in order to > disable read-ahead") mitigates the performance drop issue for squashfs > by closing readahead for it. > > This series implements readahead callback for squashfs. The previous > discussion are in [1] and [2]. > > [1] https://lore.kernel.org/all/CAJMQK-g9G6KQmH-V=BRGX0swZji9Wxe_2c7ht-MMAapdFy2pXw@mail.gmail.com/T/ > [2] https://lore.kernel.org/linux-mm/Yn5Yij9pRPCzDozt@casper.infradead.org/t/#m4af4473b94f98a4996cb11756b633a07e5e059d1 > > Hsin-Yi Wang (3): > Revert "squashfs: Convert squashfs to read_folio" > Revert "squashfs: provide backing_dev_info in order to disable > read-ahead" > squashfs: implement readahead > > fs/squashfs/file.c | 82 +++++++++++++++++++++++++++++++++++++++++-- > fs/squashfs/super.c | 33 ----------------- > fs/squashfs/symlink.c | 5 ++- > 3 files changed, 81 insertions(+), 39 deletions(-) > > -- > 2.36.0.550.gb090851708-goog > hi, please ignore this for now. I'll resend a correct cover letter.