Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * btree.h |
Luis de Bethencourt | e60f749 | 2016-11-10 11:25:36 +0000 | [diff] [blame] | 4 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | */ |
| 6 | |
Al Viro | 22341d8 | 2016-05-10 14:24:06 -0400 | [diff] [blame] | 7 | int befs_btree_find(struct super_block *sb, const befs_data_stream *ds, |
Luis de Bethencourt | 12ecb38 | 2016-08-14 18:31:38 +0100 | [diff] [blame] | 8 | const char *key, befs_off_t *value); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Al Viro | 22341d8 | 2016-05-10 14:24:06 -0400 | [diff] [blame] | 10 | int befs_btree_read(struct super_block *sb, const befs_data_stream *ds, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | loff_t key_no, size_t bufsize, char *keybuf, |
Luis de Bethencourt | 12ecb38 | 2016-08-14 18:31:38 +0100 | [diff] [blame] | 12 | size_t *keysize, befs_off_t *value); |