From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B678C1C6B4 for ; Sun, 5 Jan 2025 15:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736089943; cv=none; b=KJFF9aQLnA131o+7YIRPh/oztWVcBSl4BtGbeNERvPSv/r+MXFaViWjPnWLMUECUOoH7UJqlC6RPHFnSe2+Dn/uNYO2aD7EWiYBNMqzh7/6X2+o+Mxv3DbgVrCqVNl/gMKf2TUWgHPMIITeGFceMckli57qrVVjk3SX3dQcb6zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736089943; c=relaxed/simple; bh=LmJr8IyiIi6YpOAmTVCp8TnLk0t2kxeMhHoFjuNdsSM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k4QqLEd19EXBa79qXA4kGoXQ64Z9rJ40rLzgyr1hgbXvpU+DuWJ6WJuR+YbReAMwo6+hTGrnRjp2n3tcyXAmwQSvqH9GVstGdO1AJg4qdkbAu/4MZUCzIAdbqSUrV9sapL0fvFQH8RCFnF9t3aDOiwueFZUpGFf2aOGLWgfX1Rg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Z5qrfmqk; arc=none smtp.client-ip=115.124.30.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Z5qrfmqk" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1736089930; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=oexO+Et4ZN9vbav324BazUyu2cxUUfD0Ek/1Ckffzrw=; b=Z5qrfmqkdv7sw8Qm3Y4zKBioOh3MWI87S/0hs4947hrfOB1OabuVHeoL112L5Ro4OpTdx3MwFDR/bZVKOwXFOMaLXHBQ8YCRXRb/H+21EtND6tzD3q4vpG2Y3WaaZ+My1qehFUNcaLdu3NQkxe3ZzEG5cq6yqmIzK39wP9hlKNk= Received: from localhost(mailfrom:hongzhen@linux.alibaba.com fp:SMTPD_---0WMyljAQ_1736089929 cluster:ay36) by smtp.aliyun-inc.com; Sun, 05 Jan 2025 23:12:10 +0800 From: Hongzhen Luo To: linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, Hongzhen Luo Subject: [RFC PATCH v5 0/4] erofs: page cache share feature Date: Sun, 5 Jan 2025 23:12:04 +0800 Message-ID: <20250105151208.3797385-1-hongzhen@linux.alibaba.com> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi everyone, The patch in this version has made the following changes compared to the previous versionv(patch v4): - adjusted the code style; - introduced erofs_pcshr_{read,readahead}_{begin,end}() to switch between anonymous inodes and real inodes; - cleanup work for erofs_pcshr_fadvise(); - adjusted some variable names, etc. The experiments were repeated, and the results were almost consistent. v4: https://lore.kernel.org/all/20240902110620.2202586-1-hongzhen@linux.alibaba.com/ v3: https://lore.kernel.org/all/20240828111959.3677011-1-hongzhen@linux.alibaba.com/ v2: https://lore.kernel.org/all/20240731080704.678259-1-hongzhen@linux.alibaba.com/ v1: https://lore.kernel.org/all/20240722065355.1396365-1-hongzhen@linux.alibaba.com/ Hongzhen Luo (4): erofs: move `struct erofs_anon_fs_type` to super.c erofs: introduce the page cache share feature erofs: apply the page cache share feature erofs: introduce .fadvise for page cache share fs/erofs/Kconfig | 10 + fs/erofs/Makefile | 1 + fs/erofs/data.c | 15 +- fs/erofs/fscache.c | 13 -- fs/erofs/inode.c | 5 +- fs/erofs/internal.h | 9 + fs/erofs/pagecache_share.c | 430 +++++++++++++++++++++++++++++++++++++ fs/erofs/pagecache_share.h | 39 ++++ fs/erofs/super.c | 42 ++++ fs/erofs/zdata.c | 10 +- 10 files changed, 556 insertions(+), 18 deletions(-) create mode 100644 fs/erofs/pagecache_share.c create mode 100644 fs/erofs/pagecache_share.h -- 2.43.5