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;
99 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p)
101 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) {
102 printf("Bad inode number %s:%08x\n", sb->s_id, ino);
106 ino -= BFS_ROOT_INO;
108 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK);
110 printf("Unable to read inode %s:%08x\n", sb->s_id, ino);
114 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK;
120 unsigned int ino = (u16)inode->i_ino;
126 dprintf("ino=%08x\n", ino);
128 di = find_inode(inode->i_sb, ino, &bh);
134 if (ino == BFS_ROOT_INO)
139 di->i_ino = cpu_to_le16(ino);
165 unsigned long ino = inode->i_ino;
172 dprintf("ino=%08lx\n", ino);
195 clear_bit(ino, info->si_imap);