From patchwork Mon Jun 13 08:27:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12879162 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 026F3C43334 for ; Mon, 13 Jun 2022 08:28:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 902AE6B0255; Mon, 13 Jun 2022 04:28:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 88AE36B0256; Mon, 13 Jun 2022 04:28:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7047F6B0257; Mon, 13 Jun 2022 04:28:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5BDD46B0255 for ; Mon, 13 Jun 2022 04:28:09 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1251920E97 for ; Mon, 13 Jun 2022 08:28:09 +0000 (UTC) X-FDA: 79572535098.22.5126EAD Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by imf01.hostedemail.com (Postfix) with ESMTP id 95C58400A7 for ; Mon, 13 Jun 2022 08:28:08 +0000 (UTC) Received: by mail-pj1-f44.google.com with SMTP id o33-20020a17090a0a2400b001ea806e48c6so5276299pjo.1 for ; Mon, 13 Jun 2022 01:28:08 -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=saBjD3jkEUAS49RaWaPJ2CNN05fMmd8ePuqMGDaRHaE=; b=GWjyteMFDcjNXMDDwlym/BUvNopN71bba50Say1gw3+3U8Ne968cx6QbHNqKAGVv2d VWGuwX8FLIJYeNY6ueLNoLkOx6FKLFptYMyvZDXC0eXfYMRIhAlqMmj9Cmqud0di5sJm 1DmX80WUdvuhlTDYsBa/0Ih78fBv4p52f6b9w= 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=saBjD3jkEUAS49RaWaPJ2CNN05fMmd8ePuqMGDaRHaE=; b=f0XNtRhTgmIAA3NHeMyJEWPwnxD2yqMz77DMdXEOsoM89nE53qDWMweAeAVEBoMA8J eIUwwP23bUiLZx/JuuRoyBj1lF/+EBuauuI00S0tFpcDjEwdLFzjcaT3U3LL4WaSuMd1 bqBBUXI38XOpa6uauUWqAAtdrpsojH1pMf94MNEUI1ee5EYv1DBnlzDSZmyZf1Q2EVm4 LgFEGl72kM8xJs0gGq8usc/PUp2UDN5/lmVz7SEYBRnJJxw1wcLecFeLjZNcrmD9EJJZ Ys0/OoLl1wrBfbxT3eKVdtpePT1EEo83JGv48MzgGrv7EQH3sTEb8n8zbv/naYtsKvBS 67LQ== X-Gm-Message-State: AOAM530FBXMvcjN/F7LPBCBjGaBlvo38LLdAMy8QS5Pso6re9wv3oKHd ALjf4sqTXTlGq8ScIsO/r5IEsg== X-Google-Smtp-Source: ABdhPJyawO1X2eUGQdWidB0Npz/qLDSDbCezpShHfaKWeq7WwHzabxErc1ZlXqq4fySaJfYf3Opngw== X-Received: by 2002:a17:90b:1808:b0:1e2:a335:ad04 with SMTP id lw8-20020a17090b180800b001e2a335ad04mr14505671pjb.110.1655108887412; Mon, 13 Jun 2022 01:28:07 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:79ca:e1d9:ad5:dc9e]) by smtp.gmail.com with ESMTPSA id br8-20020a056a00440800b00518a473265csm4624906pfb.217.2022.06.13.01.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 01:28:06 -0700 (PDT) From: Hsin-Yi Wang To: Phillip Lougher , Matthew Wilcox , Marek Szyprowski , Andrew Morton Cc: 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: [PATCH v6 0/3] Implement readahead for squashfs Date: Mon, 13 Jun 2022 16:27:59 +0800 Message-Id: <20220613082802.1301238-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655108888; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=saBjD3jkEUAS49RaWaPJ2CNN05fMmd8ePuqMGDaRHaE=; b=QXxREyk07BfiqzCD62OFI0OeyH87k96XDGfsun6wgj8EcvVjSQ/fu3Vq9l1EGjuZLo0WsK RgNFPpuuMDgxGcbSWsv31UN5jnnzn6vTmYLgyLUxsHuQrW+ahraCrG15bmVCRTAmcnr5df LZCOEtc4T41iZz/E18BTgL59+5JL8xc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655108888; a=rsa-sha256; cv=none; b=qJv1ocYlLttUEct4cJNAaF6wXrkPcIgpxTPQtgtRNIGsydI6rHw96j3TbZJ8kqRLHNvQXC AU+tt6piAfDtSP18V+ay3pA0or/4jPQCrzwpLSeGlGcIOkRpqFoVMDUZE3WZYBI7TW3MA4 qHGOwKyZJGsBtXrD07Vh/Bpx26nRUok= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=GWjyteMF; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf01.hostedemail.com: domain of hsinyi@chromium.org designates 209.85.216.44 as permitted sender) smtp.mailfrom=hsinyi@chromium.org X-Rspamd-Server: rspam11 X-Rspam-User: Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=GWjyteMF; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf01.hostedemail.com: domain of hsinyi@chromium.org designates 209.85.216.44 as permitted sender) smtp.mailfrom=hsinyi@chromium.org X-Stat-Signature: xzhhk75w49he9jp99p33gpceojobm3m1 X-Rspamd-Queue-Id: 95C58400A7 X-HE-Tag: 1655108888-321868 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 discussions 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 This version is based on next-20220610 and the following series: "Squashfs: handle missing pages decompressing into page cache" [3]. This version is a refresh of ca1505bf4805 ("squashfs: implement readahead") and 9d58b94aa73a ("squashfs: always build "file direct" version of page actor"). There's no change in 4af2bd190a5b7 (Revert "squashfs: provide backing_dev_info in order to disable read-ahead"), but it's carried in this version too for consistency. [3] https://patchwork.kernel.org/project/linux-mm/cover/20220611032133.5743-1-phillip@squashfs.org.uk/ 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 | 92 +++++++++++++++++++++++++++++++++++++++- fs/squashfs/page_actor.h | 46 -------------------- fs/squashfs/super.c | 33 -------------- 4 files changed, 93 insertions(+), 82 deletions(-)