Lines Matching defs:oi
39 struct omfs_inode *oi;
50 oi = (struct omfs_inode *) bh->b_data;
51 if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, block)) {
56 if (strncmp(oi->i_name, name, namelen) == 0)
60 block = be64_to_cpu(oi->i_sibling);
88 struct omfs_inode *oi;
102 oi = (struct omfs_inode *) bh->b_data;
103 oi->i_head.h_self = cpu_to_be64(inode->i_ino);
104 oi->i_sibling = ~cpu_to_be64(0ULL);
116 struct omfs_inode *oi;
138 oi = (struct omfs_inode *) bh->b_data;
139 memcpy(oi->i_name, name, namelen);
140 memset(oi->i_name + namelen, 0, OMFS_NAMELEN - namelen);
141 oi->i_sibling = cpu_to_be64(block);
142 oi->i_parent = cpu_to_be64(dir->i_ino);
162 struct omfs_inode *oi;
183 oi = (struct omfs_inode *) bh2->b_data;
184 next = oi->i_sibling;
194 oi = (struct omfs_inode *) bh->b_data;
195 entry = &oi->i_sibling;
305 struct omfs_inode *oi = (struct omfs_inode *)bh->b_data;
306 ino_t ino = be64_to_cpu(oi->i_head.h_self);
336 struct omfs_inode *oi;
343 oi = (struct omfs_inode *) bh->b_data;
344 if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, fsblock)) {
350 fsblock = be64_to_cpu(oi->i_sibling);
359 d_type = (oi->i_type == OMFS_DIR) ? DT_DIR : DT_REG;
361 if (!dir_emit(ctx, oi->i_name,
362 strnlen(oi->i_name, OMFS_NAMELEN),