summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorChi Zhiling <chizhiling@kylinos.cn>2026-01-14 20:17:58 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-02-12 21:21:51 +0900
commit9fb696a10a6735a15a0d2b4370419702e99818d0 (patch)
tree5adba4a4673a00368b00e5c3e4f2e43b561805e7 /include/linux/debugobjects.h
parent8c6bdce0e91425ca5e84f52819b7cf0e024fb129 (diff)
exfat: return the start of next cache in exfat_cache_lookup
Change exfat_cache_lookup to return the cluster number of the last cluster before the next cache (i.e., the end of the current cache range) or the given 'end' if there is no next cache. This allows the caller to know whether the next cluster after the current cache is cached. The function signature is changed to accept an 'end' parameter, which is the upper bound of the search range. The function now stops early if it finds a cache that starts within the current cache's tail, meaning caches are contiguous. The return value is the cluster number at which the next cache starts (minus one) or the original 'end' if no next cache is found. The new behavior is illustrated as follows: cache: [ccccccc-------ccccccccc] search: [..................] return: ^ Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn> Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions