inode->i_atime.tv_sec = di->i_atime; inode->i_mtime.tv_sec = di->i_mtime; inode->i_ctime.tv_sec = di->i_ctime; 
inode->i_atime.tv_sec =  le32_to_cpu(di->i_atime); inode->i_mtime.tv_sec =  le32_to_cpu(di->i_mtime); inode->i_ctime.tv_sec =  le32_to_cpu(di->i_ctime); 
static void bfs_read_inode(struct inode * inode){	unsigned long ino = inode->i_ino;	struct bfs_inode * di;	struct buffer_head * bh;	int block, off;	if (ino < BFS_ROOT_INO || ino > BFS_SB(inode->i_sb)->si_lasti) {		printf("Bad inode number %s:%08lx\n", inode->i_sb->s_id, ino);		make_bad_inode(inode);		return;	}	block = (ino - BFS_ROOT_INO)/BFS_INODES_PER_BLOCK + 1;	bh = sb_bread(inode->i_sb, block);	if (!bh) {		printf("Unable to read inode %s:%08lx\n", inode->i_sb->s_id, ino);		make_bad_inode(inode);		return;	}	off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK;	di = (struct bfs_inode *)bh->b_data + off;	inode->i_mode = 0x0000FFFF & di->i_mode;	if (di->i_vtype == BFS_VDIR) {		inode->i_mode |= S_IFDIR;		inode->i_op = &bfs_dir_inops;		inode->i_fop = &bfs_dir_operations;	} else if (di->i_vtype == BFS_VREG) {		inode->i_mode |= S_IFREG;		inode->i_op = &bfs_file_inops;		inode->i_fop = &bfs_file_operations;		inode->i_mapping->a_ops = &bfs_aops;	}	inode->i_uid = di->i_uid;	inode->i_gid = di->i_gid;	inode->i_nlink = di->i_nlink;	inode->i_size = BFS_FILESIZE(di);	inode->i_blocks = BFS_FILEBLOCKS(di);	inode->i_blksize = PAGE_SIZE;	inode->i_atime.tv_sec = di->i_atime;	inode->i_mtime.tv_sec = di->i_mtime;	inode->i_ctime.tv_sec = di->i_ctime;	inode->i_atime.tv_nsec = 0;	inode->i_mtime.tv_nsec = 0;	inode->i_ctime.tv_nsec = 0;	BFS_I(inode)->i_dsk_ino = di->i_ino; /* can be 0 so we store a copy */	BFS_I(inode)->i_sblock = di->i_sblock;	BFS_I(inode)->i_eblock = di->i_eblock;	brelse(bh);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fac92becdaecff64dd91daab0292c5131de92f0d/inode.c/buggy/fs/bfs/inode.c