Lines Matching refs:oi
84 static void omfs_update_checksums(struct omfs_inode *oi) in omfs_update_checksums() argument
88 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums()
90 count = be32_to_cpu(oi->i_head.h_body_size); in omfs_update_checksums()
94 oi->i_head.h_crc = cpu_to_be16(crc); in omfs_update_checksums()
100 oi->i_head.h_check_xor = xor; in omfs_update_checksums()
105 struct omfs_inode *oi; in __omfs_write_inode() local
118 oi = (struct omfs_inode *) bh->b_data; in __omfs_write_inode()
120 oi->i_head.h_self = cpu_to_be64(inode->i_ino); in __omfs_write_inode()
122 oi->i_type = OMFS_DIR; in __omfs_write_inode()
124 oi->i_type = OMFS_FILE; in __omfs_write_inode()
131 oi->i_head.h_body_size = cpu_to_be32(sbi->s_sys_blocksize - in __omfs_write_inode()
133 oi->i_head.h_version = 1; in __omfs_write_inode()
134 oi->i_head.h_type = OMFS_INODE_NORMAL; in __omfs_write_inode()
135 oi->i_head.h_magic = OMFS_IMAGIC; in __omfs_write_inode()
136 oi->i_size = cpu_to_be64(inode->i_size); in __omfs_write_inode()
140 oi->i_ctime = cpu_to_be64(ctime); in __omfs_write_inode()
142 omfs_update_checksums(oi); in __omfs_write_inode()
206 struct omfs_inode *oi; in omfs_iget() local
222 oi = (struct omfs_inode *)bh->b_data; in omfs_iget()
225 if (ino != be64_to_cpu(oi->i_head.h_self)) in omfs_iget()
231 ctime = be64_to_cpu(oi->i_ctime); in omfs_iget()
243 switch (oi->i_type) { in omfs_iget()
254 inode->i_size = be64_to_cpu(oi->i_size); in omfs_iget()