Lines Matching refs:ino
35 struct inode *bfs_iget(struct super_block *sb, unsigned long ino) in bfs_iget() argument
42 inode = iget_locked(sb, ino); in bfs_iget()
48 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { in bfs_iget()
49 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino); in bfs_iget()
53 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; in bfs_iget()
57 ino); in bfs_iget()
61 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; in bfs_iget()
100 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p) in find_inode() argument
102 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) { in find_inode()
103 printf("Bad inode number %s:%08x\n", sb->s_id, ino); in find_inode()
107 ino -= BFS_ROOT_INO; in find_inode()
109 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK); in find_inode()
111 printf("Unable to read inode %s:%08x\n", sb->s_id, ino); in find_inode()
115 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK; in find_inode()
121 unsigned int ino = (u16)inode->i_ino; in bfs_write_inode() local
127 dprintf("ino=%08x\n", ino); in bfs_write_inode()
129 di = find_inode(inode->i_sb, ino, &bh); in bfs_write_inode()
135 if (ino == BFS_ROOT_INO) in bfs_write_inode()
140 di->i_ino = cpu_to_le16(ino); in bfs_write_inode()
166 unsigned long ino = inode->i_ino; in bfs_evict_inode() local
173 dprintf("ino=%08lx\n", ino); in bfs_evict_inode()
196 clear_bit(ino, info->si_imap); in bfs_evict_inode()