diff options
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r-- | fs/ext4/ialloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index c88b439ba5cd..427f83066a0d 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -563,7 +563,8 @@ got: | |||
563 | inode->i_ino = ino; | 563 | inode->i_ino = ino; |
564 | /* This is the optimal IO size (for stat), not the fs block size */ | 564 | /* This is the optimal IO size (for stat), not the fs block size */ |
565 | inode->i_blocks = 0; | 565 | inode->i_blocks = 0; |
566 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 566 | inode->i_mtime = inode->i_atime = inode->i_ctime = ei->i_crtime = |
567 | ext4_current_time(inode); | ||
567 | 568 | ||
568 | memset(ei->i_data, 0, sizeof(ei->i_data)); | 569 | memset(ei->i_data, 0, sizeof(ei->i_data)); |
569 | ei->i_dir_start_lookup = 0; | 570 | ei->i_dir_start_lookup = 0; |
@@ -595,9 +596,8 @@ got: | |||
595 | spin_unlock(&sbi->s_next_gen_lock); | 596 | spin_unlock(&sbi->s_next_gen_lock); |
596 | 597 | ||
597 | ei->i_state = EXT4_STATE_NEW; | 598 | ei->i_state = EXT4_STATE_NEW; |
598 | ei->i_extra_isize = | 599 | |
599 | (EXT4_INODE_SIZE(inode->i_sb) > EXT4_GOOD_OLD_INODE_SIZE) ? | 600 | ei->i_extra_isize = EXT4_SB(sb)->s_want_extra_isize; |
600 | sizeof(struct ext4_inode) - EXT4_GOOD_OLD_INODE_SIZE : 0; | ||
601 | 601 | ||
602 | ret = inode; | 602 | ret = inode; |
603 | if(DQUOT_ALLOC_INODE(inode)) { | 603 | if(DQUOT_ALLOC_INODE(inode)) { |