aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/dir.c')
-rw-r--r--fs/ext2/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c
index 61ad490ed67b..d9650c9508e4 100644
--- a/fs/ext2/dir.c
+++ b/fs/ext2/dir.c
@@ -471,7 +471,7 @@ void ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de,
471 err = ext2_commit_chunk(page, pos, len); 471 err = ext2_commit_chunk(page, pos, len);
472 ext2_put_page(page); 472 ext2_put_page(page);
473 if (update_times) 473 if (update_times)
474 dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC; 474 dir->i_mtime = dir->i_ctime = current_time(dir);
475 EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL; 475 EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL;
476 mark_inode_dirty(dir); 476 mark_inode_dirty(dir);
477} 477}
@@ -561,7 +561,7 @@ got_it:
561 de->inode = cpu_to_le32(inode->i_ino); 561 de->inode = cpu_to_le32(inode->i_ino);
562 ext2_set_de_type (de, inode); 562 ext2_set_de_type (de, inode);
563 err = ext2_commit_chunk(page, pos, rec_len); 563 err = ext2_commit_chunk(page, pos, rec_len);
564 dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC; 564 dir->i_mtime = dir->i_ctime = current_time(dir);
565 EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL; 565 EXT2_I(dir)->i_flags &= ~EXT2_BTREE_FL;
566 mark_inode_dirty(dir); 566 mark_inode_dirty(dir);
567 /* OFFSET_CACHE */ 567 /* OFFSET_CACHE */
@@ -610,7 +610,7 @@ int ext2_delete_entry (struct ext2_dir_entry_2 * dir, struct page * page )
610 pde->rec_len = ext2_rec_len_to_disk(to - from); 610 pde->rec_len = ext2_rec_len_to_disk(to - from);
611 dir->inode = 0; 611 dir->inode = 0;
612 err = ext2_commit_chunk(page, pos, to - from); 612 err = ext2_commit_chunk(page, pos, to - from);
613 inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; 613 inode->i_ctime = inode->i_mtime = current_time(inode);
614 EXT2_I(inode)->i_flags &= ~EXT2_BTREE_FL; 614 EXT2_I(inode)->i_flags &= ~EXT2_BTREE_FL;
615 mark_inode_dirty(inode); 615 mark_inode_dirty(inode);
616out: 616out: