Lines Matching refs:ino
36 struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
43 inode = iget_locked(sb, ino);
49 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) {
50 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino);
54 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1;
58 ino);
62 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK;
101 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p)
103 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) {
104 printf("Bad inode number %s:%08x\n", sb->s_id, ino);
108 ino -= BFS_ROOT_INO;
110 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK);
112 printf("Unable to read inode %s:%08x\n", sb->s_id, ino);
116 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK;
122 unsigned int ino = (u16)inode->i_ino;
128 dprintf("ino=%08x\n", ino);
130 di = find_inode(inode->i_sb, ino, &bh);
136 if (ino == BFS_ROOT_INO)
141 di->i_ino = cpu_to_le16(ino);
167 unsigned long ino = inode->i_ino;
174 dprintf("ino=%08lx\n", ino);
197 clear_bit(ino, info->si_imap);