From nobody Mon Feb 9 12:24:09 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (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 C1D2037C11B; Thu, 8 Jan 2026 07:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767858653; cv=none; b=buQ4nQFiyLkfM8dvctzrr5klypv9vpASeeROEdkPmznODE9WZBmT7k24zGoT/Dh54kd1I5tAVHL6IvVTYspjsQ+q48vfdjOV6CdBdodZzajM2FqPywwDjSEMy/sZCSlwPFPD4bIUupzEzhmUQVcCP2hlmaXAWy/sdTJ05/Ihtdw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767858653; c=relaxed/simple; bh=zHjGsPyySRkAz260yLO7EcReptiygu1HIzJrpqNbqJw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d+NbHAou2FXNIY5bdU4meW5EEg4qHteq4tfYcWAWSvj2CmlSshVUKw6h+IFSWA5gE426UToVe7i9K3dRW0chV5YrLOw1HyemIQZkHmHuQHMq1bXwACDp9LSgBz60BjwJb5jhaV3GBbwSe5K0f2bDydDwdcFcKyqaQnnTZCNQP3o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=BHPVjdb3; arc=none smtp.client-ip=220.197.31.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="BHPVjdb3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=yB dJnu8/sUDFI9XiLPV9fEsqpR4d1yNK8IYandtVTlY=; b=BHPVjdb3NXJ5NITMRj LCqxtjz/nkcF3+5pKypoi11xHKzn7vG114pLSD/20zzmrI2QfarYH9ZR/vQyu/b9 6pAywGOlOdPO++cpL237IaYEEBY8Gi17h8us8en+J+m9jadec647htbOKrHoQcZ3 AgkwXTCnfX9v2/JRt7aYwe6YM= Received: from czl-ubuntu-pc.. (unknown []) by gzga-smtp-mtada-g1-2 (Coremail) with SMTP id _____wBH6+WpYV9pdSx_Eg--.889S8; Thu, 08 Jan 2026 15:50:07 +0800 (CST) From: Chi Zhiling To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Namjae Jeon , Sungjong Seo , Yuezhang Mo , Chi Zhiling Subject: [PATCH v2 06/13] exfat: remove the unreachable warning for cache miss cases Date: Thu, 8 Jan 2026 15:49:22 +0800 Message-ID: <20260108074929.356683-7-chizhiling@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260108074929.356683-1-chizhiling@163.com> References: <20260108074929.356683-1-chizhiling@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wBH6+WpYV9pdSx_Eg--.889S8 X-Coremail-Antispam: 1Uf129KBjvdXoWrKFyUAw1rZr4kKFyxZry7Wrg_yoWkGFX_ua 40yFy8WFWa9w18tr4kta1a9ryYvw48Cr1Yyw1fArySq347Gr4Dt3ZrJa429r4UKr4xKF98 JrWFyFn3A3W09jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0eOJUUUUUU== X-CM-SenderInfo: hfkl6xxlol0wi6rwjhhfrp/xtbC2w+1U2lfYa8AqwAA3h Content-Type: text/plain; charset="utf-8" From: Chi Zhiling The cache_id remains unchanged on a cache miss; its value is always exactly what was set by cache_init. Therefore, checking this value again is meaningless. Signed-off-by: Chi Zhiling --- fs/exfat/cache.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/fs/exfat/cache.c b/fs/exfat/cache.c index 0ee4bff1cb35..d51737498ee4 100644 --- a/fs/exfat/cache.c +++ b/fs/exfat/cache.c @@ -260,18 +260,7 @@ int exfat_get_cluster(struct inode *inode, unsigned in= t cluster, return 0; =20 cache_init(&cid, EXFAT_EOF_CLUSTER, EXFAT_EOF_CLUSTER); - - if (exfat_cache_lookup(inode, cluster, &cid, fclus, dclus) =3D=3D - EXFAT_EOF_CLUSTER) { - /* - * dummy, always not contiguous - * This is reinitialized by cache_init(), later. - */ - WARN_ON(cid.id !=3D EXFAT_CACHE_VALID || - cid.fcluster !=3D EXFAT_EOF_CLUSTER || - cid.dcluster !=3D EXFAT_EOF_CLUSTER || - cid.nr_contig !=3D 0); - } + exfat_cache_lookup(inode, cluster, &cid, fclus, dclus); =20 if (*fclus =3D=3D cluster) return 0; --=20 2.43.0