25 static int qnx4_match(
int len,
const char *
name,
26 struct buffer_head *bh,
unsigned long *
offset)
43 if ( thislen > namelen )
56 static struct buffer_head *qnx4_find_entry(
int len,
struct inode *dir,
60 struct buffer_head *bh;
68 block = offset = blkofs = 0;
73 bh = sb_bread(dir->
i_sb, block);
80 if (qnx4_match(len, name, bh, &offset)) {
103 struct buffer_head *bh;
104 const char *name = dentry->
d_name.name;
105 int len = dentry->
d_name.len;
108 if (!(bh = qnx4_find_entry(len, dir, name, &de, &ino)))
120 if (IS_ERR(foundinode)) {
122 PTR_ERR(foundinode)));
123 return ERR_CAST(foundinode);
126 d_add(dentry, foundinode);