aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2014-05-26 23:26:53 -0700
committerH. Peter Anvin <hpa@zytor.com>2014-05-26 23:26:53 -0700
commitb8f61814204249363e15cd0d72c5cb9091124705 (patch)
treefd4eceea5ef567dcc7aaafea28680eb74085093a /core/include
parent5b448106173c615ab38d1b244ba3bb990447f252 (diff)
downloadsyslinux-b8f61814204249363e15cd0d72c5cb9091124705.tar.gz
syslinux-b8f61814204249363e15cd0d72c5cb9091124705.tar.xz
syslinux-b8f61814204249363e15cd0d72c5cb9091124705.zip
cache, btrfs: Provide a general cached read routine
btrfs_read() was really just a function to read data linearly while using the metadata cache. Move it to cache.c and rename it cache_read() so other filesystems can make use of it as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include')
-rw-r--r--core/include/cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/include/cache.h b/core/include/cache.h
index 1f451afd..a0b82d6b 100644
--- a/core/include/cache.h
+++ b/core/include/cache.h
@@ -19,5 +19,6 @@ void cache_init(struct device *, int);
const void *get_cache(struct device *, block_t);
struct cache *_get_cache_block(struct device *, block_t);
void cache_lock_block(struct cache *);
+size_t cache_read(struct fs_info *, void *, uint64_t, size_t);
#endif /* cache.h */