Lines Matching refs:ino
34 struct inode *bfs_iget(struct super_block *sb, unsigned long ino) in bfs_iget() argument
41 inode = iget_locked(sb, ino); in bfs_iget()
47 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(inode->i_sb)->si_lasti)) { in bfs_iget()
48 printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino); in bfs_iget()
52 block = (ino - BFS_ROOT_INO) / BFS_INODES_PER_BLOCK + 1; in bfs_iget()
56 ino); in bfs_iget()
60 off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; in bfs_iget()
99 static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p) in find_inode() argument
101 if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) { in find_inode()
102 printf("Bad inode number %s:%08x\n", sb->s_id, ino); in find_inode()
106 ino -= BFS_ROOT_INO; in find_inode()
108 *p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK); in find_inode()
110 printf("Unable to read inode %s:%08x\n", sb->s_id, ino); in find_inode()
114 return (struct bfs_inode *)(*p)->b_data + ino % BFS_INODES_PER_BLOCK; in find_inode()
120 unsigned int ino = (u16)inode->i_ino; in bfs_write_inode() local
126 dprintf("ino=%08x\n", ino); in bfs_write_inode()
128 di = find_inode(inode->i_sb, ino, &bh); in bfs_write_inode()
134 if (ino == BFS_ROOT_INO) in bfs_write_inode()
139 di->i_ino = cpu_to_le16(ino); in bfs_write_inode()
165 unsigned long ino = inode->i_ino; in bfs_evict_inode() local
172 dprintf("ino=%08lx\n", ino); in bfs_evict_inode()
195 clear_bit(ino, info->si_imap); in bfs_evict_inode()