From patchwork Fri Jun 17 08:38:07 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: 12885292 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 65795C433EF for ; Fri, 17 Jun 2022 08:38:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CB7A96B0080; Fri, 17 Jun 2022 04:38:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C404C6B0081; Fri, 17 Jun 2022 04:38:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB9D86B0082; Fri, 17 Jun 2022 04:38:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 977D56B0080 for ; Fri, 17 Jun 2022 04:38:32 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6EC134F3 for ; Fri, 17 Jun 2022 08:38:32 +0000 (UTC) X-FDA: 79587076464.30.BB7B7C5 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by imf05.hostedemail.com (Postfix) with ESMTP id 157FA100090 for ; Fri, 17 Jun 2022 08:38:31 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id y6so3589323pfr.13 for ; Fri, 17 Jun 2022 01:38:31 -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=K+DkLreQJFdtzIaPZdznlpaTpcwmK3UqwA6ApgLZ4TQ=; b=Lk366whEMkptSrLGRqAclQQ2FcZrq04kAssYDgRTppdYfoFU9F8gaIEBPsIOZ7WgdH 7hRdbHaR+fLKNo99gbAdrz9+6McDkQp0stDBWrUqEP6bmBGyOdzvvyDeH4Y+ZXwbNkcn qkh89tsvJEYcOetnsx3qNK1W3/0tGw/saX9r0= 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=K+DkLreQJFdtzIaPZdznlpaTpcwmK3UqwA6ApgLZ4TQ=; b=AR1DWnqB6ynoYTug9SbYRdenWEiO1aPj9MrYwjVYl6KCXes6wXeIKL+U1+tpNmmA7A va/qTa+u/j6WOSs/cNktjwJc5qRzIHm/5+QzNPHLqE2tjtwkZwQ5fe+uboiWRm/ufpuf hrgS9Tp95qrxRJmCi0ve7ZLDQj0pQ17b/I3lHOPh27W/l9e0hncObWzMpl0dPSXu/EI2 loE4WOHSb6AlmIsVv7ZvpC0XsMGpjd8oFAkxvPtctH6S3bNfRsD0RaO9EUynJrNGRX92 RGBXN3vi3GnXfeszgVdA1e9nozYzFfMyNiZOJ4JIudv/2gNPNFMxEa9OQldk+AGRx6I/ dT3g== X-Gm-Message-State: AJIora86w1zMKtaZU5CAeOOcGoRkd/SjEczObsguIbmVdYa3IQNRpumL XRN45DTelN75/mXnZz69iJ1wPw== X-Google-Smtp-Source: AGRyM1vwvZ9tYychzYFYTXO02HMgABTJZ+teUXxcNrO+NvkZckUklScM0dCZh5cI4L6b+8J6tXMMSQ== X-Received: by 2002:a05:6a00:2999:b0:51b:e3c8:9e30 with SMTP id cj25-20020a056a00299900b0051be3c89e30mr8750954pfb.41.1655455110868; Fri, 17 Jun 2022 01:38:30 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:a0dc:9427:fea8:f78a]) by smtp.gmail.com with ESMTPSA id d12-20020a62f80c000000b005185407eda5sm3154103pfh.44.2022.06.17.01.38.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 01:38:30 -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 v7 0/4] Implement readahead for squashfs Date: Fri, 17 Jun 2022 16:38:07 +0800 Message-Id: <20220617083810.337573-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=1655455112; 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=K+DkLreQJFdtzIaPZdznlpaTpcwmK3UqwA6ApgLZ4TQ=; b=UPFehVCdau4oxbcYBkOUx24du4y8bCd5x+3zMEYlOlJOVyjR7B3wyYA3Xo6qI3hfsHsUhs +bp1uBeVKSSBJBYDAY/evF0Ydb+0+9m2gpPHvT37Z81ZLeifiFJpaYcfmEycCsFUhCSY46 OovVUKntPYUQkrsbJwOwFDm+4tPuPhM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655455112; a=rsa-sha256; cv=none; b=vOAEmpErHwVBpxcCl9/hr7WLmlTnoryOlCHJ29UDSE56xbWQPXipGqF2MAZcFM+cRTDZ5L G56T7pl3YZciTXgDd1Ksnlh/qi8rUD0qwYthAS4a14ne3DKE+ToPCy+xXG0roHsRcL51p+ A5WpDXPe92pKFLvxQKV54ZCnChMBftA= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=Lk366whE; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf05.hostedemail.com: domain of hsinyi@chromium.org designates 209.85.210.175 as permitted sender) smtp.mailfrom=hsinyi@chromium.org Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=Lk366whE; dmarc=pass (policy=none) header.from=chromium.org; spf=pass (imf05.hostedemail.com: domain of hsinyi@chromium.org designates 209.85.210.175 as permitted sender) smtp.mailfrom=hsinyi@chromium.org X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 157FA100090 X-Stat-Signature: zucik8xada6kju65aod35j7bahnj6557 X-HE-Tag: 1655455111-664112 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 v7 adds the patch to support reading fragments in readahead call[3]. No changes on other patches since v6, which is included in next-20220617. [3] https://patchwork.kernel.org/project/linux-mm/patch/20220617030345.24712-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 (2): squashfs: always build "file direct" version of page actor squashfs: support reading fragments in readahead call fs/squashfs/Makefile | 4 +- fs/squashfs/file.c | 133 ++++++++++++++++++++++++++++++++++++++- fs/squashfs/page_actor.h | 46 -------------- fs/squashfs/super.c | 33 ---------- 4 files changed, 134 insertions(+), 82 deletions(-)