|
@@ -1079,9 +1079,9 @@ void ext2_read_inode (struct inode * inode)
|
|
}
|
|
}
|
|
inode->i_nlink = le16_to_cpu(raw_inode->i_links_count);
|
|
inode->i_nlink = le16_to_cpu(raw_inode->i_links_count);
|
|
inode->i_size = le32_to_cpu(raw_inode->i_size);
|
|
inode->i_size = le32_to_cpu(raw_inode->i_size);
|
|
- inode->i_atime.tv_sec = le32_to_cpu(raw_inode->i_atime);
|
|
|
|
- inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->i_ctime);
|
|
|
|
- inode->i_mtime.tv_sec = le32_to_cpu(raw_inode->i_mtime);
|
|
|
|
|
|
+ inode->i_atime.tv_sec = (signed)le32_to_cpu(raw_inode->i_atime);
|
|
|
|
+ inode->i_ctime.tv_sec = (signed)le32_to_cpu(raw_inode->i_ctime);
|
|
|
|
+ inode->i_mtime.tv_sec = (signed)le32_to_cpu(raw_inode->i_mtime);
|
|
inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
|
|
inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 0;
|
|
ei->i_dtime = le32_to_cpu(raw_inode->i_dtime);
|
|
ei->i_dtime = le32_to_cpu(raw_inode->i_dtime);
|
|
/* We now have enough fields to check if the inode was active or not.
|
|
/* We now have enough fields to check if the inode was active or not.
|