const char * name, int namelen, struct bfs_dirent ** res_dir) 
const unsigned char * name, int namelen, struct bfs_dirent ** res_dir) 
static struct buffer_head * bfs_find_entry(struct inode * dir, 	const char * name, int namelen, struct bfs_dirent ** res_dir){	unsigned long block, offset;	struct buffer_head * bh;	struct bfs_dirent * de;	*res_dir = NULL;	if (namelen > BFS_NAMELEN)		return NULL;	bh = NULL;	block = offset = 0;	while (block * BFS_BSIZE + offset < dir->i_size) {		if (!bh) {			bh = sb_bread(dir->i_sb, BFS_I(dir)->i_sblock + block);			if (!bh) {				block++;				continue;			}		}		de = (struct bfs_dirent *)(bh->b_data + offset);		offset += BFS_DIRENT_SIZE;		if (de->ino && bfs_namecmp(namelen, name, de->name)) {			*res_dir = de;			return bh;		}		if (offset < bh->b_size)			continue;		brelse(bh);		bh = NULL;		offset = 0;		block++;	}	brelse(bh);	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fac92becdaecff64dd91daab0292c5131de92f0d/dir.c/buggy/fs/bfs/dir.c