Lines Matching refs:oi
80 * Caller is expected to hold the buffer head underlying oi and mark it
83 static void omfs_update_checksums(struct omfs_inode *oi)
87 unsigned char *ptr = (unsigned char *) oi;
89 count = be32_to_cpu(oi->i_head.h_body_size);
93 oi->i_head.h_crc = cpu_to_be16(crc);
99 oi->i_head.h_check_xor = xor;
104 struct omfs_inode *oi;
117 oi = (struct omfs_inode *) bh->b_data;
119 oi->i_head.h_self = cpu_to_be64(inode->i_ino);
121 oi->i_type = OMFS_DIR;
123 oi->i_type = OMFS_FILE;
130 oi->i_head.h_body_size = cpu_to_be32(sbi->s_sys_blocksize -
132 oi->i_head.h_version = 1;
133 oi->i_head.h_type = OMFS_INODE_NORMAL;
134 oi->i_head.h_magic = OMFS_IMAGIC;
135 oi->i_size = cpu_to_be64(inode->i_size);
139 oi->i_ctime = cpu_to_be64(ctime);
141 omfs_update_checksums(oi);
205 struct omfs_inode *oi;
221 oi = (struct omfs_inode *)bh->b_data;
224 if (ino != be64_to_cpu(oi->i_head.h_self))
230 ctime = be64_to_cpu(oi->i_ctime);
239 switch (oi->i_type) {
250 inode->i_size = be64_to_cpu(oi->i_size);