Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs: Replace CURRENT_TIME with current_time() for inode timestamps

CURRENT_TIME macro is not appropriate for filesystems as it
doesn't use the right granularity for filesystem timestamps.
Use current_time() instead.

CURRENT_TIME is also not y2038 safe.

This is also in preparation for the patch that transitions
vfs timestamps to use 64 bit time and hence make them
y2038 safe. As part of the effort current_time() will be
extended to do range checks. Hence, it is necessary for all
file system timestamps to use current_time(). Also,
current_time() will be transitioned along with vfs to be
y2038 safe.

Note that whenever a single call to current_time() is used
to change timestamps in different inodes, it is because they
share the same time granularity.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Felipe Balbi <balbi@kernel.org>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Acked-by: David Sterba <dsterba@suse.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Deepa Dinamani and committed by
Al Viro
078cd827 2554c72e

+182 -182
+1 -1
arch/powerpc/platforms/cell/spufs/inode.c
··· 103 103 inode->i_mode = mode; 104 104 inode->i_uid = current_fsuid(); 105 105 inode->i_gid = current_fsgid(); 106 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 106 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 107 107 out: 108 108 return inode; 109 109 }
+2 -2
arch/s390/hypfs/inode.c
··· 51 51 struct inode *inode = d_inode(sb_info->update_file); 52 52 53 53 sb_info->last_update = get_seconds(); 54 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 54 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 55 55 } 56 56 57 57 /* directory tree removal functions */ ··· 99 99 ret->i_mode = mode; 100 100 ret->i_uid = hypfs_info->uid; 101 101 ret->i_gid = hypfs_info->gid; 102 - ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; 102 + ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); 103 103 if (S_ISDIR(mode)) 104 104 set_nlink(ret, 2); 105 105 }
+1 -1
drivers/infiniband/hw/qib/qib_fs.c
··· 64 64 inode->i_uid = GLOBAL_ROOT_UID; 65 65 inode->i_gid = GLOBAL_ROOT_GID; 66 66 inode->i_blocks = 0; 67 - inode->i_atime = CURRENT_TIME; 67 + inode->i_atime = current_time(inode); 68 68 inode->i_mtime = inode->i_atime; 69 69 inode->i_ctime = inode->i_atime; 70 70 inode->i_private = data;
+1 -1
drivers/misc/ibmasm/ibmasmfs.c
··· 144 144 if (ret) { 145 145 ret->i_ino = get_next_ino(); 146 146 ret->i_mode = mode; 147 - ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; 147 + ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); 148 148 } 149 149 return ret; 150 150 }
+1 -1
drivers/oprofile/oprofilefs.c
··· 30 30 if (inode) { 31 31 inode->i_ino = get_next_ino(); 32 32 inode->i_mode = mode; 33 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 33 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 34 34 } 35 35 return inode; 36 36 }
+9 -9
drivers/usb/core/devio.c
··· 2409 2409 snoop(&dev->dev, "%s: CONTROL\n", __func__); 2410 2410 ret = proc_control(ps, p); 2411 2411 if (ret >= 0) 2412 - inode->i_mtime = CURRENT_TIME; 2412 + inode->i_mtime = current_time(inode); 2413 2413 break; 2414 2414 2415 2415 case USBDEVFS_BULK: 2416 2416 snoop(&dev->dev, "%s: BULK\n", __func__); 2417 2417 ret = proc_bulk(ps, p); 2418 2418 if (ret >= 0) 2419 - inode->i_mtime = CURRENT_TIME; 2419 + inode->i_mtime = current_time(inode); 2420 2420 break; 2421 2421 2422 2422 case USBDEVFS_RESETEP: 2423 2423 snoop(&dev->dev, "%s: RESETEP\n", __func__); 2424 2424 ret = proc_resetep(ps, p); 2425 2425 if (ret >= 0) 2426 - inode->i_mtime = CURRENT_TIME; 2426 + inode->i_mtime = current_time(inode); 2427 2427 break; 2428 2428 2429 2429 case USBDEVFS_RESET: ··· 2435 2435 snoop(&dev->dev, "%s: CLEAR_HALT\n", __func__); 2436 2436 ret = proc_clearhalt(ps, p); 2437 2437 if (ret >= 0) 2438 - inode->i_mtime = CURRENT_TIME; 2438 + inode->i_mtime = current_time(inode); 2439 2439 break; 2440 2440 2441 2441 case USBDEVFS_GETDRIVER: ··· 2462 2462 snoop(&dev->dev, "%s: SUBMITURB\n", __func__); 2463 2463 ret = proc_submiturb(ps, p); 2464 2464 if (ret >= 0) 2465 - inode->i_mtime = CURRENT_TIME; 2465 + inode->i_mtime = current_time(inode); 2466 2466 break; 2467 2467 2468 2468 #ifdef CONFIG_COMPAT ··· 2470 2470 snoop(&dev->dev, "%s: CONTROL32\n", __func__); 2471 2471 ret = proc_control_compat(ps, p); 2472 2472 if (ret >= 0) 2473 - inode->i_mtime = CURRENT_TIME; 2473 + inode->i_mtime = current_time(inode); 2474 2474 break; 2475 2475 2476 2476 case USBDEVFS_BULK32: 2477 2477 snoop(&dev->dev, "%s: BULK32\n", __func__); 2478 2478 ret = proc_bulk_compat(ps, p); 2479 2479 if (ret >= 0) 2480 - inode->i_mtime = CURRENT_TIME; 2480 + inode->i_mtime = current_time(inode); 2481 2481 break; 2482 2482 2483 2483 case USBDEVFS_DISCSIGNAL32: ··· 2489 2489 snoop(&dev->dev, "%s: SUBMITURB32\n", __func__); 2490 2490 ret = proc_submiturb_compat(ps, p); 2491 2491 if (ret >= 0) 2492 - inode->i_mtime = CURRENT_TIME; 2492 + inode->i_mtime = current_time(inode); 2493 2493 break; 2494 2494 2495 2495 case USBDEVFS_IOCTL32: ··· 2552 2552 done: 2553 2553 usb_unlock_device(dev); 2554 2554 if (ret >= 0) 2555 - inode->i_atime = CURRENT_TIME; 2555 + inode->i_atime = current_time(inode); 2556 2556 return ret; 2557 2557 } 2558 2558
+4 -4
drivers/usb/gadget/function/f_fs.c
··· 1193 1193 inode = new_inode(sb); 1194 1194 1195 1195 if (likely(inode)) { 1196 - struct timespec current_time = CURRENT_TIME; 1196 + struct timespec ts = current_time(inode); 1197 1197 1198 1198 inode->i_ino = get_next_ino(); 1199 1199 inode->i_mode = perms->mode; 1200 1200 inode->i_uid = perms->uid; 1201 1201 inode->i_gid = perms->gid; 1202 - inode->i_atime = current_time; 1203 - inode->i_mtime = current_time; 1204 - inode->i_ctime = current_time; 1202 + inode->i_atime = ts; 1203 + inode->i_mtime = ts; 1204 + inode->i_ctime = ts; 1205 1205 inode->i_private = data; 1206 1206 if (fops) 1207 1207 inode->i_fop = fops;
+1 -1
drivers/usb/gadget/legacy/inode.c
··· 1913 1913 inode->i_uid = make_kuid(&init_user_ns, default_uid); 1914 1914 inode->i_gid = make_kgid(&init_user_ns, default_gid); 1915 1915 inode->i_atime = inode->i_mtime = inode->i_ctime 1916 - = CURRENT_TIME; 1916 + = current_time(inode); 1917 1917 inode->i_private = data; 1918 1918 inode->i_fop = fops; 1919 1919 }
+1 -1
fs/9p/vfs_inode.c
··· 276 276 inode_init_owner(inode, NULL, mode); 277 277 inode->i_blocks = 0; 278 278 inode->i_rdev = rdev; 279 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 279 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 280 280 inode->i_mapping->a_ops = &v9fs_addr_operations; 281 281 282 282 switch (mode & S_IFMT) {
+1 -1
fs/adfs/inode.c
··· 199 199 return; 200 200 201 201 cur_time: 202 - *tv = CURRENT_TIME; 202 + *tv = current_time(inode); 203 203 return; 204 204 205 205 too_early:
+1 -1
fs/autofs4/inode.c
··· 359 359 inode->i_uid = d_inode(sb->s_root)->i_uid; 360 360 inode->i_gid = d_inode(sb->s_root)->i_gid; 361 361 } 362 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 362 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 363 363 inode->i_ino = get_next_ino(); 364 364 365 365 if (S_ISDIR(mode)) {
+3 -3
fs/autofs4/root.c
··· 591 591 if (p_ino && !IS_ROOT(dentry)) 592 592 atomic_inc(&p_ino->count); 593 593 594 - dir->i_mtime = CURRENT_TIME; 594 + dir->i_mtime = current_time(dir); 595 595 596 596 return 0; 597 597 } ··· 631 631 d_inode(dentry)->i_size = 0; 632 632 clear_nlink(d_inode(dentry)); 633 633 634 - dir->i_mtime = CURRENT_TIME; 634 + dir->i_mtime = current_time(dir); 635 635 636 636 spin_lock(&sbi->lookup_lock); 637 637 __autofs4_add_expiring(dentry); ··· 762 762 if (p_ino && !IS_ROOT(dentry)) 763 763 atomic_inc(&p_ino->count); 764 764 inc_nlink(dir); 765 - dir->i_mtime = CURRENT_TIME; 765 + dir->i_mtime = current_time(dir); 766 766 767 767 return 0; 768 768 }
+3 -3
fs/devpts/inode.c
··· 305 305 } 306 306 307 307 inode->i_ino = 2; 308 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 308 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 309 309 310 310 mode = S_IFCHR|opts->ptmxmode; 311 311 init_special_inode(inode, mode, MKDEV(TTYAUX_MAJOR, 2)); ··· 411 411 if (!inode) 412 412 goto fail; 413 413 inode->i_ino = 1; 414 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 414 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 415 415 inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; 416 416 inode->i_op = &simple_dir_inode_operations; 417 417 inode->i_fop = &simple_dir_operations; ··· 559 559 inode->i_ino = index + 3; 560 560 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); 561 561 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); 562 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 562 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 563 563 init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); 564 564 565 565 sprintf(s, "%d", index);
+1 -1
fs/efivarfs/inode.c
··· 24 24 if (inode) { 25 25 inode->i_ino = get_next_ino(); 26 26 inode->i_mode = mode; 27 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 27 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 28 28 inode->i_flags = is_removable ? 0 : S_IMMUTABLE; 29 29 switch (mode & S_IFMT) { 30 30 case S_IFREG:
+3 -3
fs/exofs/dir.c
··· 416 416 if (likely(!err)) 417 417 err = exofs_commit_chunk(page, pos, len); 418 418 exofs_put_page(page); 419 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 419 + dir->i_mtime = dir->i_ctime = current_time(dir); 420 420 mark_inode_dirty(dir); 421 421 return err; 422 422 } ··· 503 503 de->inode_no = cpu_to_le64(inode->i_ino); 504 504 exofs_set_de_type(de, inode); 505 505 err = exofs_commit_chunk(page, pos, rec_len); 506 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 506 + dir->i_mtime = dir->i_ctime = current_time(dir); 507 507 mark_inode_dirty(dir); 508 508 sbi->s_numfiles++; 509 509 ··· 554 554 dir->inode_no = 0; 555 555 if (likely(!err)) 556 556 err = exofs_commit_chunk(page, pos, to - from); 557 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 557 + inode->i_ctime = inode->i_mtime = current_time(inode); 558 558 mark_inode_dirty(inode); 559 559 sbi->s_numfiles--; 560 560 out:
+2 -2
fs/exofs/inode.c
··· 1007 1007 struct exofs_sb_info *sbi = inode->i_sb->s_fs_info; 1008 1008 int ret; 1009 1009 1010 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 1010 + inode->i_mtime = inode->i_ctime = current_time(inode); 1011 1011 1012 1012 ret = ore_truncate(&sbi->layout, &oi->oc, (u64)newsize); 1013 1013 if (likely(!ret)) ··· 1313 1313 inode_init_owner(inode, dir, mode); 1314 1314 inode->i_ino = sbi->s_nextid++; 1315 1315 inode->i_blkbits = EXOFS_BLKSHIFT; 1316 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 1316 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 1317 1317 oi->i_commit_size = inode->i_size = 0; 1318 1318 spin_lock(&sbi->s_next_gen_lock); 1319 1319 inode->i_generation = sbi->s_next_generation++;
+3 -3
fs/exofs/namei.c
··· 142 142 { 143 143 struct inode *inode = d_inode(old_dentry); 144 144 145 - inode->i_ctime = CURRENT_TIME; 145 + inode->i_ctime = current_time(inode); 146 146 inode_inc_link_count(inode); 147 147 ihold(inode); 148 148 ··· 261 261 if (!new_de) 262 262 goto out_dir; 263 263 err = exofs_set_link(new_dir, new_de, new_page, old_inode); 264 - new_inode->i_ctime = CURRENT_TIME; 264 + new_inode->i_ctime = current_time(new_inode); 265 265 if (dir_de) 266 266 drop_nlink(new_inode); 267 267 inode_dec_link_count(new_inode); ··· 275 275 inode_inc_link_count(new_dir); 276 276 } 277 277 278 - old_inode->i_ctime = CURRENT_TIME; 278 + old_inode->i_ctime = current_time(old_inode); 279 279 280 280 exofs_delete_entry(old_de, old_page); 281 281 mark_inode_dirty(old_inode);
+1 -1
fs/ext2/super.c
··· 1543 1543 if (inode->i_size < off+len-towrite) 1544 1544 i_size_write(inode, off+len-towrite); 1545 1545 inode->i_version++; 1546 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 1546 + inode->i_mtime = inode->i_ctime = current_time(inode); 1547 1547 mark_inode_dirty(inode); 1548 1548 return len - towrite; 1549 1549 }
+4 -4
fs/f2fs/dir.c
··· 299 299 f2fs_dentry_kunmap(dir, page); 300 300 set_page_dirty(page); 301 301 302 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 302 + dir->i_mtime = dir->i_ctime = current_time(dir); 303 303 f2fs_mark_inode_dirty_sync(dir); 304 304 f2fs_put_page(page, 1); 305 305 } ··· 451 451 f2fs_i_links_write(dir, true); 452 452 clear_inode_flag(inode, FI_NEW_INODE); 453 453 } 454 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 454 + dir->i_mtime = dir->i_ctime = current_time(dir); 455 455 f2fs_mark_inode_dirty_sync(dir); 456 456 457 457 if (F2FS_I(dir)->i_current_depth != current_depth) ··· 656 656 657 657 if (S_ISDIR(inode->i_mode)) 658 658 f2fs_i_links_write(dir, false); 659 - inode->i_ctime = CURRENT_TIME; 659 + inode->i_ctime = current_time(inode); 660 660 661 661 f2fs_i_links_write(inode, false); 662 662 if (S_ISDIR(inode->i_mode)) { ··· 703 703 kunmap(page); /* kunmap - pair of f2fs_find_entry */ 704 704 set_page_dirty(page); 705 705 706 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 706 + dir->i_ctime = dir->i_mtime = current_time(dir); 707 707 f2fs_mark_inode_dirty_sync(dir); 708 708 709 709 if (inode)
+4 -4
fs/f2fs/file.c
··· 631 631 if (err) 632 632 return err; 633 633 634 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 634 + inode->i_mtime = inode->i_ctime = current_time(inode); 635 635 f2fs_mark_inode_dirty_sync(inode); 636 636 return 0; 637 637 } ··· 708 708 if (err) 709 709 return err; 710 710 } 711 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 711 + inode->i_mtime = inode->i_ctime = current_time(inode); 712 712 } 713 713 } 714 714 ··· 1395 1395 } 1396 1396 1397 1397 if (!ret) { 1398 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 1398 + inode->i_mtime = inode->i_ctime = current_time(inode); 1399 1399 f2fs_mark_inode_dirty_sync(inode); 1400 1400 f2fs_update_time(F2FS_I_SB(inode), REQ_TIME); 1401 1401 } ··· 1487 1487 fi->i_flags = flags; 1488 1488 inode_unlock(inode); 1489 1489 1490 - inode->i_ctime = CURRENT_TIME; 1490 + inode->i_ctime = current_time(inode); 1491 1491 f2fs_set_inode_flags(inode); 1492 1492 out: 1493 1493 mnt_drop_write_file(filp);
+1 -1
fs/f2fs/inline.c
··· 569 569 set_page_dirty(page); 570 570 f2fs_put_page(page, 1); 571 571 572 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 572 + dir->i_ctime = dir->i_mtime = current_time(dir); 573 573 f2fs_mark_inode_dirty_sync(dir); 574 574 575 575 if (inode)
+6 -6
fs/f2fs/namei.c
··· 46 46 47 47 inode->i_ino = ino; 48 48 inode->i_blocks = 0; 49 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 49 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 50 50 inode->i_generation = sbi->s_next_generation++; 51 51 52 52 err = insert_inode_locked(inode); ··· 177 177 178 178 f2fs_balance_fs(sbi, true); 179 179 180 - inode->i_ctime = CURRENT_TIME; 180 + inode->i_ctime = current_time(inode); 181 181 ihold(inode); 182 182 183 183 set_inode_flag(inode, FI_INC_LINK); ··· 718 718 719 719 f2fs_set_link(new_dir, new_entry, new_page, old_inode); 720 720 721 - new_inode->i_ctime = CURRENT_TIME; 721 + new_inode->i_ctime = current_time(new_inode); 722 722 down_write(&F2FS_I(new_inode)->i_sem); 723 723 if (old_dir_entry) 724 724 f2fs_i_links_write(new_inode, false); ··· 772 772 file_set_enc_name(old_inode); 773 773 up_write(&F2FS_I(old_inode)->i_sem); 774 774 775 - old_inode->i_ctime = CURRENT_TIME; 775 + old_inode->i_ctime = current_time(old_inode); 776 776 f2fs_mark_inode_dirty_sync(old_inode); 777 777 778 778 f2fs_delete_entry(old_entry, old_page, old_dir, NULL); ··· 927 927 file_lost_pino(old_inode); 928 928 up_write(&F2FS_I(old_inode)->i_sem); 929 929 930 - old_dir->i_ctime = CURRENT_TIME; 930 + old_dir->i_ctime = current_time(old_dir); 931 931 if (old_nlink) { 932 932 down_write(&F2FS_I(old_dir)->i_sem); 933 933 f2fs_i_links_write(old_dir, old_nlink > 0); ··· 942 942 file_lost_pino(new_inode); 943 943 up_write(&F2FS_I(new_inode)->i_sem); 944 944 945 - new_dir->i_ctime = CURRENT_TIME; 945 + new_dir->i_ctime = current_time(new_dir); 946 946 if (new_nlink) { 947 947 down_write(&F2FS_I(new_dir)->i_sem); 948 948 f2fs_i_links_write(new_dir, new_nlink > 0);
+1 -1
fs/fuse/control.c
··· 220 220 inode->i_mode = mode; 221 221 inode->i_uid = fc->user_id; 222 222 inode->i_gid = fc->group_id; 223 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 223 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 224 224 /* setting ->i_op to NULL is not allowed */ 225 225 if (iop) 226 226 inode->i_op = iop;
+4 -4
fs/gfs2/bmap.c
··· 836 836 gfs2_quota_change(ip, -(s64)btotal, ip->i_inode.i_uid, 837 837 ip->i_inode.i_gid); 838 838 839 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 839 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 840 840 841 841 gfs2_dinode_out(ip, dibh->b_data); 842 842 ··· 1063 1063 } 1064 1064 1065 1065 i_size_write(inode, newsize); 1066 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 1066 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 1067 1067 gfs2_dinode_out(ip, dibh->b_data); 1068 1068 1069 1069 if (journaled) ··· 1142 1142 gfs2_buffer_clear_tail(dibh, sizeof(struct gfs2_dinode)); 1143 1143 gfs2_ordered_del_inode(ip); 1144 1144 } 1145 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 1145 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 1146 1146 ip->i_diskflags &= ~GFS2_DIF_TRUNC_IN_PROG; 1147 1147 1148 1148 gfs2_trans_add_meta(ip->i_gl, dibh); ··· 1252 1252 goto do_end_trans; 1253 1253 1254 1254 i_size_write(inode, size); 1255 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 1255 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 1256 1256 gfs2_trans_add_meta(ip->i_gl, dibh); 1257 1257 gfs2_dinode_out(ip, dibh->b_data); 1258 1258 brelse(dibh);
+6 -6
fs/gfs2/dir.c
··· 135 135 memcpy(dibh->b_data + offset + sizeof(struct gfs2_dinode), buf, size); 136 136 if (ip->i_inode.i_size < offset + size) 137 137 i_size_write(&ip->i_inode, offset + size); 138 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 138 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 139 139 gfs2_dinode_out(ip, dibh->b_data); 140 140 141 141 brelse(dibh); ··· 233 233 234 234 if (ip->i_inode.i_size < offset + copied) 235 235 i_size_write(&ip->i_inode, offset + copied); 236 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 236 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 237 237 238 238 gfs2_trans_add_meta(ip->i_gl, dibh); 239 239 gfs2_dinode_out(ip, dibh->b_data); ··· 872 872 struct gfs2_leaf *leaf; 873 873 struct gfs2_dirent *dent; 874 874 struct qstr name = { .name = "" }; 875 - struct timespec tv = CURRENT_TIME; 875 + struct timespec tv = current_time(inode); 876 876 877 877 error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL); 878 878 if (error) ··· 1816 1816 gfs2_inum_out(nip, dent); 1817 1817 dent->de_type = cpu_to_be16(IF2DT(nip->i_inode.i_mode)); 1818 1818 dent->de_rahead = cpu_to_be16(gfs2_inode_ra_len(nip)); 1819 - tv = CURRENT_TIME; 1819 + tv = current_time(&ip->i_inode); 1820 1820 if (ip->i_diskflags & GFS2_DIF_EXHASH) { 1821 1821 leaf = (struct gfs2_leaf *)bh->b_data; 1822 1822 be16_add_cpu(&leaf->lf_entries, 1); ··· 1878 1878 const struct qstr *name = &dentry->d_name; 1879 1879 struct gfs2_dirent *dent, *prev = NULL; 1880 1880 struct buffer_head *bh; 1881 - struct timespec tv = CURRENT_TIME; 1881 + struct timespec tv = current_time(&dip->i_inode); 1882 1882 1883 1883 /* Returns _either_ the entry (if its first in block) or the 1884 1884 previous entry otherwise */ ··· 1960 1960 gfs2_trans_add_meta(dip->i_gl, bh); 1961 1961 } 1962 1962 1963 - dip->i_inode.i_mtime = dip->i_inode.i_ctime = CURRENT_TIME; 1963 + dip->i_inode.i_mtime = dip->i_inode.i_ctime = current_time(&dip->i_inode); 1964 1964 gfs2_dinode_out(dip, bh->b_data); 1965 1965 brelse(bh); 1966 1966 return 0;
+4 -4
fs/gfs2/inode.c
··· 652 652 set_nlink(inode, S_ISDIR(mode) ? 2 : 1); 653 653 inode->i_rdev = dev; 654 654 inode->i_size = size; 655 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 655 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 656 656 gfs2_set_inode_blocks(inode, 1); 657 657 munge_mode_uid_gid(dip, inode); 658 658 check_and_update_goal(dip); ··· 979 979 980 980 gfs2_trans_add_meta(ip->i_gl, dibh); 981 981 inc_nlink(&ip->i_inode); 982 - ip->i_inode.i_ctime = CURRENT_TIME; 982 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 983 983 ihold(inode); 984 984 d_instantiate(dentry, inode); 985 985 mark_inode_dirty(inode); ··· 1063 1063 return error; 1064 1064 1065 1065 ip->i_entries = 0; 1066 - inode->i_ctime = CURRENT_TIME; 1066 + inode->i_ctime = current_time(inode); 1067 1067 if (S_ISDIR(inode->i_mode)) 1068 1068 clear_nlink(inode); 1069 1069 else ··· 1326 1326 error = gfs2_meta_inode_buffer(ip, &dibh); 1327 1327 if (error) 1328 1328 return error; 1329 - ip->i_inode.i_ctime = CURRENT_TIME; 1329 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 1330 1330 gfs2_trans_add_meta(ip->i_gl, dibh); 1331 1331 gfs2_dinode_out(ip, dibh->b_data); 1332 1332 brelse(dibh);
+1 -1
fs/gfs2/quota.c
··· 854 854 size = loc + sizeof(struct gfs2_quota); 855 855 if (size > inode->i_size) 856 856 i_size_write(inode, size); 857 - inode->i_mtime = inode->i_atime = CURRENT_TIME; 857 + inode->i_mtime = inode->i_atime = current_time(inode); 858 858 mark_inode_dirty(inode); 859 859 set_bit(QDF_REFRESH, &qd->qd_flags); 860 860 }
+4 -4
fs/gfs2/xattr.c
··· 309 309 310 310 error = gfs2_meta_inode_buffer(ip, &dibh); 311 311 if (!error) { 312 - ip->i_inode.i_ctime = CURRENT_TIME; 312 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 313 313 gfs2_trans_add_meta(ip->i_gl, dibh); 314 314 gfs2_dinode_out(ip, dibh->b_data); 315 315 brelse(dibh); ··· 775 775 776 776 error = gfs2_meta_inode_buffer(ip, &dibh); 777 777 if (!error) { 778 - ip->i_inode.i_ctime = CURRENT_TIME; 778 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 779 779 gfs2_trans_add_meta(ip->i_gl, dibh); 780 780 gfs2_dinode_out(ip, dibh->b_data); 781 781 brelse(dibh); ··· 910 910 error = gfs2_meta_inode_buffer(ip, &dibh); 911 911 if (error) 912 912 goto out; 913 - ip->i_inode.i_ctime = CURRENT_TIME; 913 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 914 914 gfs2_trans_add_meta(ip->i_gl, dibh); 915 915 gfs2_dinode_out(ip, dibh->b_data); 916 916 brelse(dibh); ··· 1133 1133 1134 1134 error = gfs2_meta_inode_buffer(ip, &dibh); 1135 1135 if (!error) { 1136 - ip->i_inode.i_ctime = CURRENT_TIME; 1136 + ip->i_inode.i_ctime = current_time(&ip->i_inode); 1137 1137 gfs2_trans_add_meta(ip->i_gl, dibh); 1138 1138 gfs2_dinode_out(ip, dibh->b_data); 1139 1139 brelse(dibh);
+5 -5
fs/hugetlbfs/inode.c
··· 657 657 658 658 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) 659 659 i_size_write(inode, offset + len); 660 - inode->i_ctime = CURRENT_TIME; 660 + inode->i_ctime = current_time(inode); 661 661 out: 662 662 inode_unlock(inode); 663 663 return error; ··· 702 702 inode->i_mode = S_IFDIR | config->mode; 703 703 inode->i_uid = config->uid; 704 704 inode->i_gid = config->gid; 705 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 705 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 706 706 info = HUGETLBFS_I(inode); 707 707 mpol_shared_policy_init(&info->policy, NULL); 708 708 inode->i_op = &hugetlbfs_dir_inode_operations; ··· 741 741 lockdep_set_class(&inode->i_mapping->i_mmap_rwsem, 742 742 &hugetlbfs_i_mmap_rwsem_key); 743 743 inode->i_mapping->a_ops = &hugetlbfs_aops; 744 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 744 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 745 745 inode->i_mapping->private_data = resv_map; 746 746 info = HUGETLBFS_I(inode); 747 747 /* ··· 790 790 791 791 inode = hugetlbfs_get_inode(dir->i_sb, dir, mode, dev); 792 792 if (inode) { 793 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 793 + dir->i_ctime = dir->i_mtime = current_time(dir); 794 794 d_instantiate(dentry, inode); 795 795 dget(dentry); /* Extra count - pin the dentry in core */ 796 796 error = 0; ··· 827 827 } else 828 828 iput(inode); 829 829 } 830 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 830 + dir->i_ctime = dir->i_mtime = current_time(dir); 831 831 832 832 return error; 833 833 }
+1 -1
fs/jfs/acl.c
··· 81 81 rc = posix_acl_equiv_mode(acl, &inode->i_mode); 82 82 if (rc < 0) 83 83 return rc; 84 - inode->i_ctime = CURRENT_TIME; 84 + inode->i_ctime = current_time(inode); 85 85 mark_inode_dirty(inode); 86 86 if (rc == 0) 87 87 acl = NULL;
+1 -1
fs/jfs/inode.c
··· 403 403 break; 404 404 } 405 405 406 - ip->i_mtime = ip->i_ctime = CURRENT_TIME; 406 + ip->i_mtime = ip->i_ctime = current_time(ip); 407 407 mark_inode_dirty(ip); 408 408 409 409 txCommit(tid, 1, &ip, 0);
+1 -1
fs/jfs/jfs_inode.c
··· 131 131 jfs_inode->mode2 |= inode->i_mode; 132 132 133 133 inode->i_blocks = 0; 134 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 134 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 135 135 jfs_inode->otime = inode->i_ctime.tv_sec; 136 136 inode->i_generation = JFS_SBI(sb)->gengen++; 137 137
+11 -11
fs/jfs/namei.c
··· 162 162 163 163 mark_inode_dirty(ip); 164 164 165 - dip->i_ctime = dip->i_mtime = CURRENT_TIME; 165 + dip->i_ctime = dip->i_mtime = current_time(dip); 166 166 167 167 mark_inode_dirty(dip); 168 168 ··· 298 298 299 299 /* update parent directory inode */ 300 300 inc_nlink(dip); /* for '..' from child directory */ 301 - dip->i_ctime = dip->i_mtime = CURRENT_TIME; 301 + dip->i_ctime = dip->i_mtime = current_time(dip); 302 302 mark_inode_dirty(dip); 303 303 304 304 rc = txCommit(tid, 2, &iplist[0], 0); ··· 406 406 /* update parent directory's link count corresponding 407 407 * to ".." entry of the target directory deleted 408 408 */ 409 - dip->i_ctime = dip->i_mtime = CURRENT_TIME; 409 + dip->i_ctime = dip->i_mtime = current_time(dip); 410 410 inode_dec_link_count(dip); 411 411 412 412 /* ··· 528 528 529 529 ASSERT(ip->i_nlink); 530 530 531 - ip->i_ctime = dip->i_ctime = dip->i_mtime = CURRENT_TIME; 531 + ip->i_ctime = dip->i_ctime = dip->i_mtime = current_time(ip); 532 532 mark_inode_dirty(dip); 533 533 534 534 /* update target's inode */ ··· 838 838 839 839 /* update object inode */ 840 840 inc_nlink(ip); /* for new link */ 841 - ip->i_ctime = CURRENT_TIME; 842 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 841 + ip->i_ctime = current_time(ip); 842 + dir->i_ctime = dir->i_mtime = current_time(dir); 843 843 mark_inode_dirty(dir); 844 844 ihold(ip); 845 845 ··· 1039 1039 1040 1040 mark_inode_dirty(ip); 1041 1041 1042 - dip->i_ctime = dip->i_mtime = CURRENT_TIME; 1042 + dip->i_ctime = dip->i_mtime = current_time(dip); 1043 1043 mark_inode_dirty(dip); 1044 1044 /* 1045 1045 * commit update of parent directory and link object ··· 1215 1215 tblk->xflag |= COMMIT_DELETE; 1216 1216 tblk->u.ip = new_ip; 1217 1217 } else { 1218 - new_ip->i_ctime = CURRENT_TIME; 1218 + new_ip->i_ctime = current_time(new_ip); 1219 1219 mark_inode_dirty(new_ip); 1220 1220 } 1221 1221 } else { ··· 1278 1278 /* 1279 1279 * Update ctime on changed/moved inodes & mark dirty 1280 1280 */ 1281 - old_ip->i_ctime = CURRENT_TIME; 1281 + old_ip->i_ctime = current_time(old_ip); 1282 1282 mark_inode_dirty(old_ip); 1283 1283 1284 1284 new_dir->i_ctime = new_dir->i_mtime = current_fs_time(new_dir->i_sb); ··· 1293 1293 1294 1294 if (old_dir != new_dir) { 1295 1295 iplist[ipcount++] = new_dir; 1296 - old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; 1296 + old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir); 1297 1297 mark_inode_dirty(old_dir); 1298 1298 } 1299 1299 ··· 1426 1426 1427 1427 mark_inode_dirty(ip); 1428 1428 1429 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 1429 + dir->i_ctime = dir->i_mtime = current_time(dir); 1430 1430 1431 1431 mark_inode_dirty(dir); 1432 1432
+1 -1
fs/jfs/super.c
··· 830 830 if (inode->i_size < off+len-towrite) 831 831 i_size_write(inode, off+len-towrite); 832 832 inode->i_version++; 833 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 833 + inode->i_mtime = inode->i_ctime = current_time(inode); 834 834 mark_inode_dirty(inode); 835 835 inode_unlock(inode); 836 836 return len - towrite;
+1 -1
fs/jfs/xattr.c
··· 658 658 if (old_blocks) 659 659 dquot_free_block(inode, old_blocks); 660 660 661 - inode->i_ctime = CURRENT_TIME; 661 + inode->i_ctime = current_time(inode); 662 662 663 663 return 0; 664 664 }
+7 -7
fs/libfs.c
··· 265 265 */ 266 266 root->i_ino = 1; 267 267 root->i_mode = S_IFDIR | S_IRUSR | S_IWUSR; 268 - root->i_atime = root->i_mtime = root->i_ctime = CURRENT_TIME; 268 + root->i_atime = root->i_mtime = root->i_ctime = current_time(root); 269 269 dentry = __d_alloc(s, &d_name); 270 270 if (!dentry) { 271 271 iput(root); ··· 295 295 { 296 296 struct inode *inode = d_inode(old_dentry); 297 297 298 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 298 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 299 299 inc_nlink(inode); 300 300 ihold(inode); 301 301 dget(dentry); ··· 329 329 { 330 330 struct inode *inode = d_inode(dentry); 331 331 332 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 332 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 333 333 drop_nlink(inode); 334 334 dput(dentry); 335 335 return 0; ··· 369 369 } 370 370 371 371 old_dir->i_ctime = old_dir->i_mtime = new_dir->i_ctime = 372 - new_dir->i_mtime = inode->i_ctime = CURRENT_TIME; 372 + new_dir->i_mtime = inode->i_ctime = current_time(old_dir); 373 373 374 374 return 0; 375 375 } ··· 520 520 */ 521 521 inode->i_ino = 1; 522 522 inode->i_mode = S_IFDIR | 0755; 523 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 523 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 524 524 inode->i_op = &simple_dir_inode_operations; 525 525 inode->i_fop = &simple_dir_operations; 526 526 set_nlink(inode, 2); ··· 546 546 goto out; 547 547 } 548 548 inode->i_mode = S_IFREG | files->mode; 549 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 549 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 550 550 inode->i_fop = files->ops; 551 551 inode->i_ino = i; 552 552 d_add(dentry, inode); ··· 1092 1092 inode->i_uid = current_fsuid(); 1093 1093 inode->i_gid = current_fsgid(); 1094 1094 inode->i_flags |= S_PRIVATE; 1095 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 1095 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 1096 1096 return inode; 1097 1097 } 1098 1098 EXPORT_SYMBOL(alloc_anon_inode);
+3 -3
fs/logfs/dir.c
··· 226 226 ta->state = UNLINK_1; 227 227 ta->ino = inode->i_ino; 228 228 229 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 229 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 230 230 231 231 page = logfs_get_dd_page(dir, dentry); 232 232 if (!page) { ··· 540 540 { 541 541 struct inode *inode = d_inode(old_dentry); 542 542 543 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 543 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 544 544 ihold(inode); 545 545 inc_nlink(inode); 546 546 mark_inode_dirty_sync(inode); ··· 573 573 * (crc-protected) journal. 574 574 */ 575 575 BUG_ON(beyond_eof(dir, pos)); 576 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 576 + dir->i_ctime = dir->i_mtime = current_time(dir); 577 577 log_dir(" Delete dentry (%lx, %llx)\n", dir->i_ino, pos); 578 578 return logfs_delete(dir, pos, NULL); 579 579 }
+1 -1
fs/logfs/file.c
··· 211 211 li->li_flags = flags; 212 212 inode_unlock(inode); 213 213 214 - inode->i_ctime = CURRENT_TIME; 214 + inode->i_ctime = current_time(inode); 215 215 mark_inode_dirty_sync(inode); 216 216 return 0; 217 217
+2 -2
fs/logfs/inode.c
··· 213 213 i_gid_write(inode, 0); 214 214 inode->i_size = 0; 215 215 inode->i_blocks = 0; 216 - inode->i_ctime = CURRENT_TIME; 217 - inode->i_mtime = CURRENT_TIME; 216 + inode->i_ctime = current_time(inode); 217 + inode->i_mtime = current_time(inode); 218 218 li->li_refcount = 1; 219 219 INIT_LIST_HEAD(&li->li_freeing_list); 220 220
+2 -2
fs/logfs/readwrite.c
··· 1546 1546 int err; 1547 1547 1548 1548 flags |= WF_WRITE | WF_DELETE; 1549 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 1549 + inode->i_ctime = inode->i_mtime = current_time(inode); 1550 1550 1551 1551 logfs_unpack_index(index, &bix, &level); 1552 1552 if (logfs_block(page) && logfs_block(page)->reserved_bytes) ··· 1578 1578 long flags = WF_DELETE; 1579 1579 int err; 1580 1580 1581 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 1581 + inode->i_ctime = inode->i_mtime = current_time(inode); 1582 1582 1583 1583 if (page->index < I0_BLOCKS) 1584 1584 return logfs_write_direct(inode, page, flags);
+3 -3
fs/nilfs2/dir.c
··· 438 438 nilfs_set_de_type(de, inode); 439 439 nilfs_commit_chunk(page, mapping, from, to); 440 440 nilfs_put_page(page); 441 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 441 + dir->i_mtime = dir->i_ctime = current_time(dir); 442 442 } 443 443 444 444 /* ··· 528 528 de->inode = cpu_to_le64(inode->i_ino); 529 529 nilfs_set_de_type(de, inode); 530 530 nilfs_commit_chunk(page, page->mapping, from, to); 531 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 531 + dir->i_mtime = dir->i_ctime = current_time(dir); 532 532 nilfs_mark_inode_dirty(dir); 533 533 /* OFFSET_CACHE */ 534 534 out_put: ··· 576 576 pde->rec_len = nilfs_rec_len_to_disk(to - from); 577 577 dir->inode = 0; 578 578 nilfs_commit_chunk(page, mapping, from, to); 579 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 579 + inode->i_ctime = inode->i_mtime = current_time(inode); 580 580 out: 581 581 nilfs_put_page(page); 582 582 return err;
+2 -2
fs/nilfs2/inode.c
··· 367 367 atomic64_inc(&root->inodes_count); 368 368 inode_init_owner(inode, dir, mode); 369 369 inode->i_ino = ino; 370 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 370 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 371 371 372 372 if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { 373 373 err = nilfs_bmap_read(ii->i_bmap, NULL); ··· 749 749 750 750 nilfs_truncate_bmap(ii, blkoff); 751 751 752 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 752 + inode->i_mtime = inode->i_ctime = current_time(inode); 753 753 if (IS_SYNC(inode)) 754 754 nilfs_set_transaction_flag(NILFS_TI_SYNC); 755 755
+1 -1
fs/nilfs2/ioctl.c
··· 174 174 (flags & FS_FL_USER_MODIFIABLE); 175 175 176 176 nilfs_set_inode_flags(inode); 177 - inode->i_ctime = CURRENT_TIME; 177 + inode->i_ctime = current_time(inode); 178 178 if (IS_SYNC(inode)) 179 179 nilfs_set_transaction_flag(NILFS_TI_SYNC); 180 180
+3 -3
fs/nilfs2/namei.c
··· 194 194 if (err) 195 195 return err; 196 196 197 - inode->i_ctime = CURRENT_TIME; 197 + inode->i_ctime = current_time(inode); 198 198 inode_inc_link_count(inode); 199 199 ihold(inode); 200 200 ··· 391 391 goto out_dir; 392 392 nilfs_set_link(new_dir, new_de, new_page, old_inode); 393 393 nilfs_mark_inode_dirty(new_dir); 394 - new_inode->i_ctime = CURRENT_TIME; 394 + new_inode->i_ctime = current_time(new_inode); 395 395 if (dir_de) 396 396 drop_nlink(new_inode); 397 397 drop_nlink(new_inode); ··· 410 410 * Like most other Unix systems, set the ctime for inodes on a 411 411 * rename. 412 412 */ 413 - old_inode->i_ctime = CURRENT_TIME; 413 + old_inode->i_ctime = current_time(old_inode); 414 414 415 415 nilfs_delete_entry(old_de, old_page); 416 416
+1 -1
fs/nsfs.c
··· 82 82 return ERR_PTR(-ENOMEM); 83 83 } 84 84 inode->i_ino = ns->inum; 85 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 85 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 86 86 inode->i_flags |= S_IMMUTABLE; 87 87 inode->i_mode = S_IFREG | S_IRUGO; 88 88 inode->i_fop = &ns_file_operations;
+1 -1
fs/ocfs2/acl.c
··· 201 201 } 202 202 203 203 inode->i_mode = new_mode; 204 - inode->i_ctime = CURRENT_TIME; 204 + inode->i_ctime = current_time(inode); 205 205 di->i_mode = cpu_to_le16(inode->i_mode); 206 206 di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); 207 207 di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec);
+1 -1
fs/ocfs2/alloc.c
··· 7311 7311 } 7312 7312 7313 7313 inode->i_blocks = ocfs2_inode_sector_count(inode); 7314 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 7314 + inode->i_ctime = inode->i_mtime = current_time(inode); 7315 7315 7316 7316 di->i_ctime = di->i_mtime = cpu_to_le64(inode->i_ctime.tv_sec); 7317 7317 di->i_ctime_nsec = di->i_mtime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec);
+1 -1
fs/ocfs2/aops.c
··· 2020 2020 } 2021 2021 inode->i_blocks = ocfs2_inode_sector_count(inode); 2022 2022 di->i_size = cpu_to_le64((u64)i_size_read(inode)); 2023 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 2023 + inode->i_mtime = inode->i_ctime = current_time(inode); 2024 2024 di->i_mtime = di->i_ctime = cpu_to_le64(inode->i_mtime.tv_sec); 2025 2025 di->i_mtime_nsec = di->i_ctime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); 2026 2026 ocfs2_update_inode_fsync_trans(handle, inode, 1);
+2 -2
fs/ocfs2/dir.c
··· 1677 1677 offset, ocfs2_dir_trailer_blk_off(dir->i_sb)); 1678 1678 1679 1679 if (ocfs2_dirent_would_fit(de, rec_len)) { 1680 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 1680 + dir->i_mtime = dir->i_ctime = current_time(dir); 1681 1681 retval = ocfs2_mark_inode_dirty(handle, dir, parent_fe_bh); 1682 1682 if (retval < 0) { 1683 1683 mlog_errno(retval); ··· 2990 2990 ocfs2_dinode_new_extent_list(dir, di); 2991 2991 2992 2992 i_size_write(dir, sb->s_blocksize); 2993 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 2993 + dir->i_mtime = dir->i_ctime = current_time(dir); 2994 2994 2995 2995 di->i_size = cpu_to_le64(sb->s_blocksize); 2996 2996 di->i_ctime = di->i_mtime = cpu_to_le64(dir->i_ctime.tv_sec);
+2 -2
fs/ocfs2/dlmfs/dlmfs.c
··· 398 398 if (inode) { 399 399 inode->i_ino = get_next_ino(); 400 400 inode_init_owner(inode, NULL, mode); 401 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 401 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 402 402 inc_nlink(inode); 403 403 404 404 inode->i_fop = &simple_dir_operations; ··· 421 421 422 422 inode->i_ino = get_next_ino(); 423 423 inode_init_owner(inode, parent, mode); 424 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 424 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 425 425 426 426 ip = DLMFS_I(inode); 427 427 ip->ip_conn = DLMFS_I(parent)->ip_conn;
+6 -6
fs/ocfs2/file.c
··· 253 253 return 0; 254 254 } 255 255 256 - now = CURRENT_TIME; 256 + now = current_time(inode); 257 257 if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) 258 258 return 0; 259 259 else ··· 287 287 * have i_mutex to guard against concurrent changes to other 288 288 * inode fields. 289 289 */ 290 - inode->i_atime = CURRENT_TIME; 290 + inode->i_atime = current_time(inode); 291 291 di->i_atime = cpu_to_le64(inode->i_atime.tv_sec); 292 292 di->i_atime_nsec = cpu_to_le32(inode->i_atime.tv_nsec); 293 293 ocfs2_update_inode_fsync_trans(handle, inode, 0); ··· 308 308 309 309 i_size_write(inode, new_i_size); 310 310 inode->i_blocks = ocfs2_inode_sector_count(inode); 311 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 311 + inode->i_ctime = inode->i_mtime = current_time(inode); 312 312 313 313 status = ocfs2_mark_inode_dirty(handle, inode, fe_bh); 314 314 if (status < 0) { ··· 429 429 } 430 430 431 431 i_size_write(inode, new_i_size); 432 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 432 + inode->i_ctime = inode->i_mtime = current_time(inode); 433 433 434 434 di = (struct ocfs2_dinode *) fe_bh->b_data; 435 435 di->i_size = cpu_to_le64(new_i_size); ··· 840 840 i_size_write(inode, abs_to); 841 841 inode->i_blocks = ocfs2_inode_sector_count(inode); 842 842 di->i_size = cpu_to_le64((u64)i_size_read(inode)); 843 - inode->i_mtime = inode->i_ctime = CURRENT_TIME; 843 + inode->i_mtime = inode->i_ctime = current_time(inode); 844 844 di->i_mtime = di->i_ctime = cpu_to_le64(inode->i_mtime.tv_sec); 845 845 di->i_ctime_nsec = cpu_to_le32(inode->i_mtime.tv_nsec); 846 846 di->i_mtime_nsec = di->i_ctime_nsec; ··· 1936 1936 if (change_size && i_size_read(inode) < size) 1937 1937 i_size_write(inode, size); 1938 1938 1939 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 1939 + inode->i_ctime = inode->i_mtime = current_time(inode); 1940 1940 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); 1941 1941 if (ret < 0) 1942 1942 mlog_errno(ret);
+1 -1
fs/ocfs2/move_extents.c
··· 953 953 } 954 954 955 955 di = (struct ocfs2_dinode *)di_bh->b_data; 956 - inode->i_ctime = CURRENT_TIME; 956 + inode->i_ctime = current_time(inode); 957 957 di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); 958 958 di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); 959 959 ocfs2_update_inode_fsync_trans(handle, inode, 0);
+5 -5
fs/ocfs2/namei.c
··· 798 798 } 799 799 800 800 inc_nlink(inode); 801 - inode->i_ctime = CURRENT_TIME; 801 + inode->i_ctime = current_time(inode); 802 802 ocfs2_set_links_count(fe, inode->i_nlink); 803 803 fe->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); 804 804 fe->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); ··· 1000 1000 ocfs2_set_links_count(fe, inode->i_nlink); 1001 1001 ocfs2_journal_dirty(handle, fe_bh); 1002 1002 1003 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 1003 + dir->i_ctime = dir->i_mtime = current_time(dir); 1004 1004 if (S_ISDIR(inode->i_mode)) 1005 1005 drop_nlink(dir); 1006 1006 ··· 1537 1537 new_dir_bh, &target_insert); 1538 1538 } 1539 1539 1540 - old_inode->i_ctime = CURRENT_TIME; 1540 + old_inode->i_ctime = current_time(old_inode); 1541 1541 mark_inode_dirty(old_inode); 1542 1542 1543 1543 status = ocfs2_journal_access_di(handle, INODE_CACHE(old_inode), ··· 1586 1586 1587 1587 if (new_inode) { 1588 1588 drop_nlink(new_inode); 1589 - new_inode->i_ctime = CURRENT_TIME; 1589 + new_inode->i_ctime = current_time(new_inode); 1590 1590 } 1591 - old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; 1591 + old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir); 1592 1592 1593 1593 if (update_dot_dot) { 1594 1594 status = ocfs2_update_entry(old_inode, handle,
+2 -2
fs/ocfs2/refcounttree.c
··· 3778 3778 goto out_commit; 3779 3779 } 3780 3780 3781 - inode->i_ctime = CURRENT_TIME; 3781 + inode->i_ctime = current_time(inode); 3782 3782 di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); 3783 3783 di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); 3784 3784 ··· 4094 4094 * we want mtime to appear identical to the source and 4095 4095 * update ctime. 4096 4096 */ 4097 - t_inode->i_ctime = CURRENT_TIME; 4097 + t_inode->i_ctime = current_time(t_inode); 4098 4098 4099 4099 di->i_ctime = cpu_to_le64(t_inode->i_ctime.tv_sec); 4100 4100 di->i_ctime_nsec = cpu_to_le32(t_inode->i_ctime.tv_nsec);
+1 -1
fs/ocfs2/xattr.c
··· 3431 3431 goto out; 3432 3432 } 3433 3433 3434 - inode->i_ctime = CURRENT_TIME; 3434 + inode->i_ctime = current_time(inode); 3435 3435 di->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); 3436 3436 di->i_ctime_nsec = cpu_to_le32(inode->i_ctime.tv_nsec); 3437 3437 ocfs2_journal_dirty(ctxt->handle, xis->inode_bh);
+1 -1
fs/omfs/inode.c
··· 49 49 inode_init_owner(inode, NULL, mode); 50 50 inode->i_mapping->a_ops = &omfs_aops; 51 51 52 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 52 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 53 53 switch (mode & S_IFMT) { 54 54 case S_IFDIR: 55 55 inode->i_op = &omfs_dir_inops;
+1 -1
fs/openpromfs/inode.c
··· 355 355 if (!inode) 356 356 return ERR_PTR(-ENOMEM); 357 357 if (inode->i_state & I_NEW) { 358 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 358 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 359 359 if (inode->i_ino == OPENPROM_ROOT_INO) { 360 360 inode->i_op = &openprom_inode_operations; 361 361 inode->i_fop = &openprom_operations;
+1 -1
fs/orangefs/file.c
··· 358 358 file_accessed(file); 359 359 } else { 360 360 SetMtimeFlag(orangefs_inode); 361 - inode->i_mtime = CURRENT_TIME; 361 + inode->i_mtime = current_time(inode); 362 362 mark_inode_dirty_sync(inode); 363 363 } 364 364 }
+1 -1
fs/orangefs/inode.c
··· 438 438 inode->i_mode = mode; 439 439 inode->i_uid = current_fsuid(); 440 440 inode->i_gid = current_fsgid(); 441 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 441 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 442 442 inode->i_size = PAGE_SIZE; 443 443 inode->i_rdev = dev; 444 444
+1 -1
fs/pipe.c
··· 716 716 inode->i_mode = S_IFIFO | S_IRUSR | S_IWUSR; 717 717 inode->i_uid = current_fsuid(); 718 718 inode->i_gid = current_fsgid(); 719 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 719 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 720 720 721 721 return inode; 722 722
+1 -1
fs/posix_acl.c
··· 897 897 acl = NULL; 898 898 } 899 899 900 - inode->i_ctime = CURRENT_TIME; 900 + inode->i_ctime = current_time(inode); 901 901 set_cached_acl(inode, type, acl); 902 902 return 0; 903 903 }
+1 -1
fs/proc/base.c
··· 1664 1664 /* Common stuff */ 1665 1665 ei = PROC_I(inode); 1666 1666 inode->i_ino = get_next_ino(); 1667 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 1667 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 1668 1668 inode->i_op = &proc_def_inode_operations; 1669 1669 1670 1670 /*
+1 -1
fs/proc/inode.c
··· 420 420 421 421 if (inode) { 422 422 inode->i_ino = de->low_ino; 423 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 423 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 424 424 PROC_I(inode)->pde = de; 425 425 426 426 if (is_empty_pde(de)) {
+1 -1
fs/proc/proc_sysctl.c
··· 444 444 ei->sysctl = head; 445 445 ei->sysctl_entry = table; 446 446 447 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 447 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 448 448 inode->i_mode = table->mode; 449 449 if (!S_ISDIR(table->mode)) { 450 450 inode->i_mode |= S_IFREG;
+1 -1
fs/proc/self.c
··· 56 56 struct inode *inode = new_inode_pseudo(s); 57 57 if (inode) { 58 58 inode->i_ino = self_inum; 59 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 59 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 60 60 inode->i_mode = S_IFLNK | S_IRWXUGO; 61 61 inode->i_uid = GLOBAL_ROOT_UID; 62 62 inode->i_gid = GLOBAL_ROOT_GID;
+1 -1
fs/proc/thread_self.c
··· 58 58 struct inode *inode = new_inode_pseudo(s); 59 59 if (inode) { 60 60 inode->i_ino = thread_self_inum; 61 - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; 61 + inode->i_mtime = inode->i_atime = inode->i_ctime = current_time(inode); 62 62 inode->i_mode = S_IFLNK | S_IRWXUGO; 63 63 inode->i_uid = GLOBAL_ROOT_UID; 64 64 inode->i_gid = GLOBAL_ROOT_GID;
+1 -1
fs/pstore/inode.c
··· 230 230 struct inode *inode = new_inode(sb); 231 231 if (inode) { 232 232 inode->i_ino = get_next_ino(); 233 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 233 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 234 234 } 235 235 return inode; 236 236 }
+3 -3
fs/ramfs/inode.c
··· 61 61 inode->i_mapping->a_ops = &ramfs_aops; 62 62 mapping_set_gfp_mask(inode->i_mapping, GFP_HIGHUSER); 63 63 mapping_set_unevictable(inode->i_mapping); 64 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 64 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 65 65 switch (mode & S_IFMT) { 66 66 default: 67 67 init_special_inode(inode, mode, dev); ··· 100 100 d_instantiate(dentry, inode); 101 101 dget(dentry); /* Extra count - pin the dentry in core */ 102 102 error = 0; 103 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 103 + dir->i_mtime = dir->i_ctime = current_time(dir); 104 104 } 105 105 return error; 106 106 } ··· 130 130 if (!error) { 131 131 d_instantiate(dentry, inode); 132 132 dget(dentry); 133 - dir->i_mtime = dir->i_ctime = CURRENT_TIME; 133 + dir->i_mtime = dir->i_ctime = current_time(dir); 134 134 } else 135 135 iput(inode); 136 136 }
+1 -1
fs/tracefs/inode.c
··· 133 133 struct inode *inode = new_inode(sb); 134 134 if (inode) { 135 135 inode->i_ino = get_next_ino(); 136 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 136 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 137 137 } 138 138 return inode; 139 139 }
+9 -9
ipc/mqueue.c
··· 225 225 inode->i_mode = mode; 226 226 inode->i_uid = current_fsuid(); 227 227 inode->i_gid = current_fsgid(); 228 - inode->i_mtime = inode->i_ctime = inode->i_atime = CURRENT_TIME; 228 + inode->i_mtime = inode->i_ctime = inode->i_atime = current_time(inode); 229 229 230 230 if (S_ISREG(mode)) { 231 231 struct mqueue_inode_info *info; ··· 446 446 447 447 put_ipc_ns(ipc_ns); 448 448 dir->i_size += DIRENT_SIZE; 449 - dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; 449 + dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); 450 450 451 451 d_instantiate(dentry, inode); 452 452 dget(dentry); ··· 462 462 { 463 463 struct inode *inode = d_inode(dentry); 464 464 465 - dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; 465 + dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir); 466 466 dir->i_size -= DIRENT_SIZE; 467 467 drop_nlink(inode); 468 468 dput(dentry); ··· 500 500 if (ret <= 0) 501 501 return ret; 502 502 503 - file_inode(filp)->i_atime = file_inode(filp)->i_ctime = CURRENT_TIME; 503 + file_inode(filp)->i_atime = file_inode(filp)->i_ctime = current_time(file_inode(filp)); 504 504 return ret; 505 505 } 506 506 ··· 1060 1060 __do_notify(info); 1061 1061 } 1062 1062 inode->i_atime = inode->i_mtime = inode->i_ctime = 1063 - CURRENT_TIME; 1063 + current_time(inode); 1064 1064 } 1065 1065 out_unlock: 1066 1066 spin_unlock(&info->lock); ··· 1156 1156 msg_ptr = msg_get(info); 1157 1157 1158 1158 inode->i_atime = inode->i_mtime = inode->i_ctime = 1159 - CURRENT_TIME; 1159 + current_time(inode); 1160 1160 1161 1161 /* There is now free space in queue. */ 1162 1162 pipelined_receive(&wake_q, info); ··· 1277 1277 if (u_notification == NULL) { 1278 1278 if (info->notify_owner == task_tgid(current)) { 1279 1279 remove_notification(info); 1280 - inode->i_atime = inode->i_ctime = CURRENT_TIME; 1280 + inode->i_atime = inode->i_ctime = current_time(inode); 1281 1281 } 1282 1282 } else if (info->notify_owner != NULL) { 1283 1283 ret = -EBUSY; ··· 1302 1302 1303 1303 info->notify_owner = get_pid(task_tgid(current)); 1304 1304 info->notify_user_ns = get_user_ns(current_user_ns()); 1305 - inode->i_atime = inode->i_ctime = CURRENT_TIME; 1305 + inode->i_atime = inode->i_ctime = current_time(inode); 1306 1306 } 1307 1307 spin_unlock(&info->lock); 1308 1308 out_fput: ··· 1359 1359 f.file->f_flags &= ~O_NONBLOCK; 1360 1360 spin_unlock(&f.file->f_lock); 1361 1361 1362 - inode->i_atime = inode->i_ctime = CURRENT_TIME; 1362 + inode->i_atime = inode->i_ctime = current_time(inode); 1363 1363 } 1364 1364 1365 1365 spin_unlock(&info->lock);
+1 -1
kernel/bpf/inode.c
··· 97 97 return ERR_PTR(-ENOSPC); 98 98 99 99 inode->i_ino = get_next_ino(); 100 - inode->i_atime = CURRENT_TIME; 100 + inode->i_atime = current_time(inode); 101 101 inode->i_mtime = inode->i_atime; 102 102 inode->i_ctime = inode->i_atime; 103 103
+10 -10
mm/shmem.c
··· 933 933 void shmem_truncate_range(struct inode *inode, loff_t lstart, loff_t lend) 934 934 { 935 935 shmem_undo_range(inode, lstart, lend, false); 936 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 936 + inode->i_ctime = inode->i_mtime = current_time(inode); 937 937 } 938 938 EXPORT_SYMBOL_GPL(shmem_truncate_range); 939 939 ··· 978 978 if (error) 979 979 return error; 980 980 i_size_write(inode, newsize); 981 - inode->i_ctime = inode->i_mtime = CURRENT_TIME; 981 + inode->i_ctime = inode->i_mtime = current_time(inode); 982 982 } 983 983 if (newsize <= oldsize) { 984 984 loff_t holebegin = round_up(newsize, PAGE_SIZE); ··· 2082 2082 inode->i_ino = get_next_ino(); 2083 2083 inode_init_owner(inode, dir, mode); 2084 2084 inode->i_blocks = 0; 2085 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 2085 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 2086 2086 inode->i_generation = get_seconds(); 2087 2087 info = SHMEM_I(inode); 2088 2088 memset(info, 0, (char *)inode - (char *)info); ··· 2853 2853 2854 2854 if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) 2855 2855 i_size_write(inode, offset + len); 2856 - inode->i_ctime = CURRENT_TIME; 2856 + inode->i_ctime = current_time(inode); 2857 2857 undone: 2858 2858 spin_lock(&inode->i_lock); 2859 2859 inode->i_private = NULL; ··· 2906 2906 2907 2907 error = 0; 2908 2908 dir->i_size += BOGO_DIRENT_SIZE; 2909 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 2909 + dir->i_ctime = dir->i_mtime = current_time(dir); 2910 2910 d_instantiate(dentry, inode); 2911 2911 dget(dentry); /* Extra count - pin the dentry in core */ 2912 2912 } ··· 2974 2974 goto out; 2975 2975 2976 2976 dir->i_size += BOGO_DIRENT_SIZE; 2977 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 2977 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 2978 2978 inc_nlink(inode); 2979 2979 ihold(inode); /* New dentry reference */ 2980 2980 dget(dentry); /* Extra pinning count for the created dentry */ ··· 2991 2991 shmem_free_inode(inode->i_sb); 2992 2992 2993 2993 dir->i_size -= BOGO_DIRENT_SIZE; 2994 - inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME; 2994 + inode->i_ctime = dir->i_ctime = dir->i_mtime = current_time(inode); 2995 2995 drop_nlink(inode); 2996 2996 dput(dentry); /* Undo the count from "create" - this does all the work */ 2997 2997 return 0; ··· 3024 3024 old_dir->i_ctime = old_dir->i_mtime = 3025 3025 new_dir->i_ctime = new_dir->i_mtime = 3026 3026 d_inode(old_dentry)->i_ctime = 3027 - d_inode(new_dentry)->i_ctime = CURRENT_TIME; 3027 + d_inode(new_dentry)->i_ctime = current_time(old_dir); 3028 3028 3029 3029 return 0; 3030 3030 } ··· 3098 3098 new_dir->i_size += BOGO_DIRENT_SIZE; 3099 3099 old_dir->i_ctime = old_dir->i_mtime = 3100 3100 new_dir->i_ctime = new_dir->i_mtime = 3101 - inode->i_ctime = CURRENT_TIME; 3101 + inode->i_ctime = current_time(old_dir); 3102 3102 return 0; 3103 3103 } 3104 3104 ··· 3153 3153 put_page(page); 3154 3154 } 3155 3155 dir->i_size += BOGO_DIRENT_SIZE; 3156 - dir->i_ctime = dir->i_mtime = CURRENT_TIME; 3156 + dir->i_ctime = dir->i_mtime = current_time(dir); 3157 3157 d_instantiate(dentry, inode); 3158 3158 dget(dentry); 3159 3159 return 0;
+1 -1
net/sunrpc/rpc_pipe.c
··· 477 477 return NULL; 478 478 inode->i_ino = get_next_ino(); 479 479 inode->i_mode = mode; 480 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 480 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 481 481 switch (mode & S_IFMT) { 482 482 case S_IFDIR: 483 483 inode->i_fop = &simple_dir_operations;
+1 -1
security/apparmor/apparmorfs.c
··· 381 381 for (i = 0; i < AAFS_PROF_SIZEOF; i++) { 382 382 new->dents[i] = old->dents[i]; 383 383 if (new->dents[i]) 384 - new->dents[i]->d_inode->i_mtime = CURRENT_TIME; 384 + new->dents[i]->d_inode->i_mtime = current_time(new->dents[i]->d_inode); 385 385 old->dents[i] = NULL; 386 386 } 387 387 }
+1 -1
security/inode.c
··· 117 117 118 118 inode->i_ino = get_next_ino(); 119 119 inode->i_mode = mode; 120 - inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 120 + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); 121 121 inode->i_private = data; 122 122 if (is_dir) { 123 123 inode->i_op = &simple_dir_inode_operations;
+1 -1
security/selinux/selinuxfs.c
··· 1089 1089 1090 1090 if (ret) { 1091 1091 ret->i_mode = mode; 1092 - ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; 1092 + ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); 1093 1093 } 1094 1094 return ret; 1095 1095 }