Lines Matching defs:ino
34 struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
41 inode = iget_locked(sb, ino);
47 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) {
48 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino);
52 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1;
56 ino);
60 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK;
98 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p)
100 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) {
101 printf("Bad inode number %s:%08x\n", sb->s_id, ino);
105 ino -= BFS_ROOT_INO;
107 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK);
109 printf("Unable to read inode %s:%08x\n", sb->s_id, ino);
113 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK;
119 unsigned int ino = (u16)inode->i_ino;
125 dprintf("ino=%08x\n", ino);
127 di = find_inode(inode->i_sb, ino, &bh);
133 if (ino == BFS_ROOT_INO)
138 di->i_ino = cpu_to_le16(ino);
164 unsigned long ino = inode->i_ino;
171 dprintf("ino=%08lx\n", ino);
194 clear_bit(ino, info->si_imap);