// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/hfs/bfind.c * * Copyright (C) 2001 * Brad Boyer ([email protected]) * (C) 2003 Ardis Technologies <[email protected]> * * Search routines for btrees */ #include <linux/slab.h> #include "btree.h" int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) { … } void hfs_find_exit(struct hfs_find_data *fd) { … } /* Find the record in bnode that best matches key (not greater than...)*/ int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) { … } /* Traverse a B*Tree from the root to a leaf finding best fit to key */ /* Return allocated copy of node found, set recnum to best record */ int hfs_brec_find(struct hfs_find_data *fd) { … } int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) { … } int hfs_brec_goto(struct hfs_find_data *fd, int cnt) { … }