From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 737D718CBF8 for ; Thu, 29 Aug 2024 09:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724924194; cv=none; b=X2GmI0ZZ8lX2c1amECPf24KUmzKmL2seygttAlnypaVgixMDqvpnkEtUQHs+IDpkFIG90A3S+4AHnsuDa3KNpQIXNJoYd/d/y9iea4ZkHUoVViIcJ1F3rN+4fX3yJ+zi0qQFXA5JgV2J0fiZCbhoqxu+2C6DO+Rx0DGRWxwQiuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724924194; c=relaxed/simple; bh=ExeF5I81GcpVCCpbhCRZIc3k1af/kCmCzzsLHIrPPmA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XxLxKrIrl2pfrTNLdXwmEEH1A3Fh6bJhSVAT1P5RDFH2WTMf6mTPL9tZjkLnRoAeFQwZBD+K6C4FRtEhwp0WdoxDUFhCmBlEyBl3PufeWDLux29EURGQtYRQ3E8mlf+BroO0TElyevdjPLVj+94ktliehSn6kRpB/R+APIdv//I= 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=SAdypQNC; arc=none smtp.client-ip=115.124.30.110 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="SAdypQNC" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1724924190; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=+KYMFXlqlUBPY+PML64VVWpiuYOErjUusBKS06cHwT8=; b=SAdypQNC3so9IIEfqoS/pZ9rjW69ZAsYEKKouqrkJWC5Rr6iAknd3KvDEhwm9rVzKN8ICkWpJZV+r28Fet2Td5IsZjWNxS2+4cnx6Qe09ZE/Q5mumN44T1NP0NwWNvzgX7mjgjFwCte6xJ93KbyzpgH9ksmizkrCVt5AU7A2rz4= Received: from x31i01179.sqa.na131.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0WDsbb0z_1724924188) by smtp.aliyun-inc.com; Thu, 29 Aug 2024 17:36:29 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: LKML , Gao Xiang Subject: [PATCH RESEND 4/4] erofs: mark experimental fscache backend deprecated Date: Thu, 29 Aug 2024 17:36:17 +0800 Message-ID: <20240829093617.2396538-4-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20240829093617.2396538-1-hsiangkao@linux.alibaba.com> References: <20240829092614.2382457-1-hsiangkao@linux.alibaba.com> <20240829093617.2396538-1-hsiangkao@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Although fscache is still described as "General Filesystem Caching" for network filesystems and other things such as ISO9660 filesystems, it has actually become a part of netfslib recently, which was unexpected at the time when "EROFS over fscache" proposed (2021) since EROFS is entirely a disk filesystem and the dependency is redundant. Mark it deprecated and it will be removed after "fanotify pre-content hooks" lands, which will provide the same functionality for EROFS. Signed-off-by: Gao Xiang --- fs/erofs/Kconfig | 5 ++++- fs/erofs/super.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig index 1428d0530e1c..6ea60661fa55 100644 --- a/fs/erofs/Kconfig +++ b/fs/erofs/Kconfig @@ -145,7 +145,7 @@ config EROFS_FS_ZIP_ZSTD If unsure, say N. config EROFS_FS_ONDEMAND - bool "EROFS fscache-based on-demand read support" + bool "EROFS fscache-based on-demand read support (deprecated)" depends on EROFS_FS select NETFS_SUPPORT select FSCACHE @@ -155,6 +155,9 @@ config EROFS_FS_ONDEMAND This permits EROFS to use fscache-backed data blobs with on-demand read support. + It is now deprecated and scheduled to be removed from the kernel + after fanotify pre-content hooks are landed. + If unsure, say N. config EROFS_FS_PCPU_KTHREAD diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 8e92ad3fbead..9bee2c06a4cd 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -353,7 +353,7 @@ static int erofs_read_superblock(struct super_block *sb) ret = erofs_scan_devices(sb, dsb); if (erofs_is_fscache_mode(sb)) - erofs_info(sb, "EXPERIMENTAL fscache-based on-demand read feature in use. Use at your own risk!"); + erofs_info(sb, "[deprecated] fscache-based on-demand read feature in use. Use at your own risk!"); out: erofs_put_metabuf(&buf); return ret; -- 2.43.5