Files
scoutfs/kmod/src/segment.h
Zach Brown 12d5d3d216 scoutfs: add next item reading
Add code to walk all the block segments that intersect a key range to
find the next item after that key value.

It is easier to just return failure from the next item reader and have
the caller retry the searches so we change the specific item reading
path to use the same convention to keep the caller consistent.

This still warns as it falls off the last block but that's fine for now.
We're going to be changing all this in the next few commits.

Signed-off-by: Zach Brown <zab@versity.com>
2016-03-18 17:30:39 -07:00

10 lines
281 B
C

#ifndef _SCOUTFS_SEGMENT_H_
#define _SCOUTFS_SEGMENT_H_
int scoutfs_read_item(struct super_block *sb, struct scoutfs_key *key);
int scoutfs_read_next_item(struct super_block *sb,
struct scoutfs_key *first_key);
int scoutfs_write_dirty_items(struct super_block *sb);
#endif