Lines Matching refs:oi
83 static void omfs_update_checksums(struct omfs_inode *oi) in omfs_update_checksums() argument
87 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums()
89 count = be32_to_cpu(oi->i_head.h_body_size); in omfs_update_checksums()
93 oi->i_head.h_crc = cpu_to_be16(crc); in omfs_update_checksums()
99 oi->i_head.h_check_xor = xor; in omfs_update_checksums()
104 struct omfs_inode *oi; in __omfs_write_inode() local
117 oi = (struct omfs_inode *) bh->b_data; in __omfs_write_inode()
119 oi->i_head.h_self = cpu_to_be64(inode->i_ino); in __omfs_write_inode()
121 oi->i_type = OMFS_DIR; in __omfs_write_inode()
123 oi->i_type = OMFS_FILE; in __omfs_write_inode()
130 oi->i_head.h_body_size = cpu_to_be32(sbi->s_sys_blocksize - in __omfs_write_inode()
132 oi->i_head.h_version = 1; in __omfs_write_inode()
133 oi->i_head.h_type = OMFS_INODE_NORMAL; in __omfs_write_inode()
134 oi->i_head.h_magic = OMFS_IMAGIC; in __omfs_write_inode()
135 oi->i_size = cpu_to_be64(inode->i_size); in __omfs_write_inode()
139 oi->i_ctime = cpu_to_be64(ctime); in __omfs_write_inode()
141 omfs_update_checksums(oi); in __omfs_write_inode()
205 struct omfs_inode *oi; in omfs_iget() local
221 oi = (struct omfs_inode *)bh->b_data; in omfs_iget()
224 if (ino != be64_to_cpu(oi->i_head.h_self)) in omfs_iget()
230 ctime = be64_to_cpu(oi->i_ctime); in omfs_iget()
242 switch (oi->i_type) { in omfs_iget()
253 inode->i_size = be64_to_cpu(oi->i_size); in omfs_iget()