diff options
| author | Chi Zhiling <chizhiling@kylinos.cn> | 2026-01-14 15:12:42 +0300 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-02-12 15:21:49 +0300 |
| commit | 5dc72a518137941852fc57b3cde97ff243791e57 (patch) | |
| tree | 01efd4ce9368c30d4f422c27ab1ef1bd86f3f767 | |
| parent | 2e21557d5422a24e0c2c12455ae8b9f10045e3d5 (diff) | |
| download | linux-5dc72a518137941852fc57b3cde97ff243791e57.tar.xz | |
exfat: remove the unreachable warning for cache miss cases
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 <chizhiling@kylinos.cn>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
| -rw-r--r-- | fs/exfat/cache.c | 13 |
1 files changed, 1 insertions, 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 int cluster, return 0; cache_init(&cid, EXFAT_EOF_CLUSTER, EXFAT_EOF_CLUSTER); - - if (exfat_cache_lookup(inode, cluster, &cid, fclus, dclus) == - EXFAT_EOF_CLUSTER) { - /* - * dummy, always not contiguous - * This is reinitialized by cache_init(), later. - */ - WARN_ON(cid.id != EXFAT_CACHE_VALID || - cid.fcluster != EXFAT_EOF_CLUSTER || - cid.dcluster != EXFAT_EOF_CLUSTER || - cid.nr_contig != 0); - } + exfat_cache_lookup(inode, cluster, &cid, fclus, dclus); if (*fclus == cluster) return 0; |
