Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1246716lfc; Wed, 1 Jun 2022 12:59:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrQ6xrUhhtFtClGdp6cixxsGgLKIGIrehZ+dfC6wuDVnUK7NAcBgI/q39lu2392Bp3CDD6 X-Received: by 2002:a17:902:bb92:b0:153:4eae:c77e with SMTP id m18-20020a170902bb9200b001534eaec77emr1057457pls.93.1654113583490; Wed, 01 Jun 2022 12:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113583; cv=none; d=google.com; s=arc-20160816; b=Wam3ZbhrJCg32xGsxwCRegCtMrqnIslNBMfrpOCBeu7emGPe4Kkf0VEw9y1JvCoHGe 8sFlAToTzKeli5uygkwzeg+jhgcwSrg7DcrgzAxrHyt/nXA9XIIcHBc4J8FV1rYDuvSA qA3PEkaw8OIJf58yHODGDvW6fzUX+U98vnUJyjGgAzmQIqVl4+Oni7z+EfpwLh1ADZU4 yp1lokEt+XqYcaRKkroJeCN0WCjNu64HpdG7arRVOrLYDjuZ1XCeQw6NMK4RhyEturpQ jKVxlsQxRm7d81jFKqkDK8wKGNgzg+P9CSHliioeaMn3CYBqQS5mQrZI29WkWWZ2Z/Sf k9mw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=iyhf6brMfc11D4/C56YiSyoAx+hrLfJS2MsKHkeQdSU=; b=ppRleqNKyOlJkSH9y0yLIKGBLqt8szNqkj+yqw22QGrTZm4XGU/3qhRiqTgqm2xjme LAhekbWV3wo7/nqt+mubAcdhdfM3QRORHDBhDJGU0yLHnD8t0m8YVuX0e6nW7FPNCyzG 0nKfu6ofmci9T/sxZ14aBiYnBk1AXN9mMpAQaEcN7HM+GGfiK0zwQua0TWqmajyA0VM+ vglqIH0qFNJ34k7oFGHvZ8taMDKdq5p6wv9TVB/XUq0E3DmH2/8ETTiGnAbIbtuB4RrN iMpcJcei+sI8ZjESba+K1gDDj9zGy4FUHsC7RenwnZq5HFQl46wDhtpw+5OqkANKf6kX ksHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=edQmDBvT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u11-20020a170902e80b00b0015cdfb5dc6asi3866384plg.84.2022.06.01.12.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:59:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=edQmDBvT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D6DD21C3B3; Wed, 1 Jun 2022 12:18:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352024AbiFAKjj (ORCPT + 99 others); Wed, 1 Jun 2022 06:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347833AbiFAKja (ORCPT ); Wed, 1 Jun 2022 06:39:30 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C90907CDCC for ; Wed, 1 Jun 2022 03:39:28 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id a10so1637181pju.3 for ; Wed, 01 Jun 2022 03:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iyhf6brMfc11D4/C56YiSyoAx+hrLfJS2MsKHkeQdSU=; b=edQmDBvTOZnRp+S7U+hlShKZoD5of6RQ9ZKELHbSmIOTHvZXpjms28A8imaluJwyVZ XlSDbNQslUnlxjv8JGlU0NyJ+wI1qa4uqtvq6SU6fKonDTYlt4Ccd6Oxg23l1Ogh8sqL Puj21O0B3ZQJVV96/+itll3gIkfOy6v5gwdd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iyhf6brMfc11D4/C56YiSyoAx+hrLfJS2MsKHkeQdSU=; b=evKLLNyX2dXnK8DABDSTReddMpSdEk2jxK2zBsV0r+lwKnUpHaSX85DhLxVxK6n0b6 PQUJ02FbfQFr5rjOZF8Mztjl3mbilRzt4mI3mlHvYo9OmQoG3SD8PKd4qobKOVnSGlV5 85aCzPKCmzRguiu+nmryTpQ6fG0JiNq3R3dkwJBEIcYHSNR5uJwFpH/twWsYldAQzRfn KshWoge9U7XAdnxohfxVqZ9undQfWrZdS0HnqbmB8sDbZrhPqAAxhFXtZVfp+t1TS5PU 1I91QyLmP0d6djr5c5OBDwa2H4p1t4YYzi2NkkTIiaLKLJXcyHACwnO9kVI9b4nZtgxO nSbA== X-Gm-Message-State: AOAM533RgTS6oMUtwgsVKBWnb0/xJwu4bTvELNp64RgTvNcnbzDHL8Et 5cXFqul0xWX38teMcV6PvmQZfw== X-Received: by 2002:a17:902:ba97:b0:161:524d:5adb with SMTP id k23-20020a170902ba9700b00161524d5adbmr64905940pls.126.1654079968231; Wed, 01 Jun 2022 03:39:28 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:dc30:e75c:ae95:f2d6]) by smtp.gmail.com with ESMTPSA id i9-20020a17090332c900b00163bfaf0b17sm1183867plr.233.2022.06.01.03.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 03:39:27 -0700 (PDT) From: Hsin-Yi Wang 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 Subject: [PATCH v4 0/3] Implement readahead for squashfs Date: Wed, 1 Jun 2022 18:39:19 +0800 Message-Id: <20220601103922.1338320-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.255.ge46751e96f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 (2): Revert "squashfs: provide backing_dev_info in order to disable read-ahead" squashfs: implement readahead Phillip Lougher (1): squashfs: always build "file direct" version of page actor fs/squashfs/Makefile | 4 +- fs/squashfs/file.c | 97 +++++++++++++++++++++++++++++++++++++++- fs/squashfs/page_actor.h | 41 ----------------- fs/squashfs/super.c | 33 -------------- 4 files changed, 98 insertions(+), 77 deletions(-) -- 2.36.1.255.ge46751e96f-goog