diff options
-rw-r--r-- | drivers/char/sonypi.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 2 | ||||
-rw-r--r-- | fs/attr.c | 2 | ||||
-rw-r--r-- | fs/bad_inode.c | 2 | ||||
-rw-r--r-- | fs/binfmt_misc.c | 2 | ||||
-rw-r--r-- | fs/btrfs/file.c | 6 | ||||
-rw-r--r-- | fs/btrfs/inode.c | 22 | ||||
-rw-r--r-- | fs/btrfs/ioctl.c | 8 | ||||
-rw-r--r-- | fs/btrfs/transaction.c | 4 | ||||
-rw-r--r-- | fs/btrfs/xattr.c | 2 | ||||
-rw-r--r-- | fs/ceph/file.c | 4 | ||||
-rw-r--r-- | fs/ceph/inode.c | 2 | ||||
-rw-r--r-- | fs/ceph/xattr.c | 2 | ||||
-rw-r--r-- | fs/cifs/file.c | 4 | ||||
-rw-r--r-- | fs/configfs/inode.c | 6 | ||||
-rw-r--r-- | fs/debugfs/inode.c | 2 | ||||
-rw-r--r-- | fs/f2fs/xattr.c | 2 | ||||
-rw-r--r-- | fs/fat/file.c | 2 | ||||
-rw-r--r-- | fs/fuse/dir.c | 2 | ||||
-rw-r--r-- | fs/inode.c | 6 | ||||
-rw-r--r-- | fs/jfs/namei.c | 2 | ||||
-rw-r--r-- | fs/kernfs/inode.c | 2 | ||||
-rw-r--r-- | fs/locks.c | 2 | ||||
-rw-r--r-- | fs/nfsd/blocklayout.c | 2 | ||||
-rw-r--r-- | fs/ntfs/inode.c | 2 | ||||
-rw-r--r-- | fs/ntfs/mft.c | 2 | ||||
-rw-r--r-- | fs/orangefs/namei.c | 10 | ||||
-rw-r--r-- | fs/udf/ialloc.c | 2 | ||||
-rw-r--r-- | fs/udf/inode.c | 4 | ||||
-rw-r--r-- | fs/udf/namei.c | 20 | ||||
-rw-r--r-- | fs/xfs/xfs_acl.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_iops.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_trans_inode.c | 2 |
34 files changed, 70 insertions, 70 deletions
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index e496daefe9e0..719c5b4eed39 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -934,7 +934,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, | |||
934 | 934 | ||
935 | if (ret > 0) { | 935 | if (ret > 0) { |
936 | struct inode *inode = file_inode(file); | 936 | struct inode *inode = file_inode(file); |
937 | inode->i_atime = current_fs_time(inode->i_sb); | 937 | inode->i_atime = current_time(inode); |
938 | } | 938 | } |
939 | 939 | ||
940 | return ret; | 940 | return ret; |
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 1dba3598cfcb..c890a49587e4 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -4116,7 +4116,7 @@ static ssize_t sonypi_misc_read(struct file *file, char __user *buf, | |||
4116 | 4116 | ||
4117 | if (ret > 0) { | 4117 | if (ret > 0) { |
4118 | struct inode *inode = file_inode(file); | 4118 | struct inode *inode = file_inode(file); |
4119 | inode->i_atime = current_fs_time(inode->i_sb); | 4119 | inode->i_atime = current_time(inode); |
4120 | } | 4120 | } |
4121 | 4121 | ||
4122 | return ret; | 4122 | return ret; |
@@ -209,7 +209,7 @@ int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **de | |||
209 | inode->i_flags &= ~S_NOSEC; | 209 | inode->i_flags &= ~S_NOSEC; |
210 | } | 210 | } |
211 | 211 | ||
212 | now = current_fs_time(inode->i_sb); | 212 | now = current_time(inode); |
213 | 213 | ||
214 | attr->ia_ctime = now; | 214 | attr->ia_ctime = now; |
215 | if (!(ia_valid & ATTR_ATIME_SET)) | 215 | if (!(ia_valid & ATTR_ATIME_SET)) |
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 3ba385eaa26e..3c8ec390b446 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c | |||
@@ -173,7 +173,7 @@ void make_bad_inode(struct inode *inode) | |||
173 | 173 | ||
174 | inode->i_mode = S_IFREG; | 174 | inode->i_mode = S_IFREG; |
175 | inode->i_atime = inode->i_mtime = inode->i_ctime = | 175 | inode->i_atime = inode->i_mtime = inode->i_ctime = |
176 | current_fs_time(inode->i_sb); | 176 | current_time(inode); |
177 | inode->i_op = &bad_inode_ops; | 177 | inode->i_op = &bad_inode_ops; |
178 | inode->i_fop = &bad_file_ops; | 178 | inode->i_fop = &bad_file_ops; |
179 | } | 179 | } |
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 6103a6362ccd..9b4688ab1d8e 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -584,7 +584,7 @@ static struct inode *bm_get_inode(struct super_block *sb, int mode) | |||
584 | inode->i_ino = get_next_ino(); | 584 | inode->i_ino = get_next_ino(); |
585 | inode->i_mode = mode; | 585 | inode->i_mode = mode; |
586 | inode->i_atime = inode->i_mtime = inode->i_ctime = | 586 | inode->i_atime = inode->i_mtime = inode->i_ctime = |
587 | current_fs_time(inode->i_sb); | 587 | current_time(inode); |
588 | } | 588 | } |
589 | return inode; | 589 | return inode; |
590 | } | 590 | } |
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index fea31a4a6e36..dad53ce54d91 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1757,7 +1757,7 @@ static void update_time_for_write(struct inode *inode) | |||
1757 | if (IS_NOCMTIME(inode)) | 1757 | if (IS_NOCMTIME(inode)) |
1758 | return; | 1758 | return; |
1759 | 1759 | ||
1760 | now = current_fs_time(inode->i_sb); | 1760 | now = current_time(inode); |
1761 | if (!timespec_equal(&inode->i_mtime, &now)) | 1761 | if (!timespec_equal(&inode->i_mtime, &now)) |
1762 | inode->i_mtime = now; | 1762 | inode->i_mtime = now; |
1763 | 1763 | ||
@@ -2578,7 +2578,7 @@ out_trans: | |||
2578 | goto out_free; | 2578 | goto out_free; |
2579 | 2579 | ||
2580 | inode_inc_iversion(inode); | 2580 | inode_inc_iversion(inode); |
2581 | inode->i_mtime = inode->i_ctime = current_fs_time(inode->i_sb); | 2581 | inode->i_mtime = inode->i_ctime = current_time(inode); |
2582 | 2582 | ||
2583 | trans->block_rsv = &root->fs_info->trans_block_rsv; | 2583 | trans->block_rsv = &root->fs_info->trans_block_rsv; |
2584 | ret = btrfs_update_inode(trans, root, inode); | 2584 | ret = btrfs_update_inode(trans, root, inode); |
@@ -2842,7 +2842,7 @@ static long btrfs_fallocate(struct file *file, int mode, | |||
2842 | if (IS_ERR(trans)) { | 2842 | if (IS_ERR(trans)) { |
2843 | ret = PTR_ERR(trans); | 2843 | ret = PTR_ERR(trans); |
2844 | } else { | 2844 | } else { |
2845 | inode->i_ctime = current_fs_time(inode->i_sb); | 2845 | inode->i_ctime = current_time(inode); |
2846 | i_size_write(inode, actual_end); | 2846 | i_size_write(inode, actual_end); |
2847 | btrfs_ordered_update_i_size(inode, actual_end, NULL); | 2847 | btrfs_ordered_update_i_size(inode, actual_end, NULL); |
2848 | ret = btrfs_update_inode(trans, root, inode); | 2848 | ret = btrfs_update_inode(trans, root, inode); |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index e6811c42e41e..2924774343e3 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4059,7 +4059,7 @@ err: | |||
4059 | inode_inc_iversion(inode); | 4059 | inode_inc_iversion(inode); |
4060 | inode_inc_iversion(dir); | 4060 | inode_inc_iversion(dir); |
4061 | inode->i_ctime = dir->i_mtime = | 4061 | inode->i_ctime = dir->i_mtime = |
4062 | dir->i_ctime = current_fs_time(inode->i_sb); | 4062 | dir->i_ctime = current_time(inode); |
4063 | ret = btrfs_update_inode(trans, root, dir); | 4063 | ret = btrfs_update_inode(trans, root, dir); |
4064 | out: | 4064 | out: |
4065 | return ret; | 4065 | return ret; |
@@ -4202,7 +4202,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, | |||
4202 | 4202 | ||
4203 | btrfs_i_size_write(dir, dir->i_size - name_len * 2); | 4203 | btrfs_i_size_write(dir, dir->i_size - name_len * 2); |
4204 | inode_inc_iversion(dir); | 4204 | inode_inc_iversion(dir); |
4205 | dir->i_mtime = dir->i_ctime = current_fs_time(dir->i_sb); | 4205 | dir->i_mtime = dir->i_ctime = current_time(dir); |
4206 | ret = btrfs_update_inode_fallback(trans, root, dir); | 4206 | ret = btrfs_update_inode_fallback(trans, root, dir); |
4207 | if (ret) | 4207 | if (ret) |
4208 | btrfs_abort_transaction(trans, ret); | 4208 | btrfs_abort_transaction(trans, ret); |
@@ -4965,7 +4965,7 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr) | |||
4965 | inode_inc_iversion(inode); | 4965 | inode_inc_iversion(inode); |
4966 | if (!(mask & (ATTR_CTIME | ATTR_MTIME))) | 4966 | if (!(mask & (ATTR_CTIME | ATTR_MTIME))) |
4967 | inode->i_ctime = inode->i_mtime = | 4967 | inode->i_ctime = inode->i_mtime = |
4968 | current_fs_time(inode->i_sb); | 4968 | current_time(inode); |
4969 | } | 4969 | } |
4970 | 4970 | ||
4971 | if (newsize > oldsize) { | 4971 | if (newsize > oldsize) { |
@@ -5672,7 +5672,7 @@ static struct inode *new_simple_dir(struct super_block *s, | |||
5672 | inode->i_op = &btrfs_dir_ro_inode_operations; | 5672 | inode->i_op = &btrfs_dir_ro_inode_operations; |
5673 | inode->i_fop = &simple_dir_operations; | 5673 | inode->i_fop = &simple_dir_operations; |
5674 | inode->i_mode = S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO; | 5674 | inode->i_mode = S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO; |
5675 | inode->i_mtime = current_fs_time(inode->i_sb); | 5675 | inode->i_mtime = current_time(inode); |
5676 | inode->i_atime = inode->i_mtime; | 5676 | inode->i_atime = inode->i_mtime; |
5677 | inode->i_ctime = inode->i_mtime; | 5677 | inode->i_ctime = inode->i_mtime; |
5678 | BTRFS_I(inode)->i_otime = inode->i_mtime; | 5678 | BTRFS_I(inode)->i_otime = inode->i_mtime; |
@@ -6258,7 +6258,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, | |||
6258 | inode_init_owner(inode, dir, mode); | 6258 | inode_init_owner(inode, dir, mode); |
6259 | inode_set_bytes(inode, 0); | 6259 | inode_set_bytes(inode, 0); |
6260 | 6260 | ||
6261 | inode->i_mtime = current_fs_time(inode->i_sb); | 6261 | inode->i_mtime = current_time(inode); |
6262 | inode->i_atime = inode->i_mtime; | 6262 | inode->i_atime = inode->i_mtime; |
6263 | inode->i_ctime = inode->i_mtime; | 6263 | inode->i_ctime = inode->i_mtime; |
6264 | BTRFS_I(inode)->i_otime = inode->i_mtime; | 6264 | BTRFS_I(inode)->i_otime = inode->i_mtime; |
@@ -6372,7 +6372,7 @@ int btrfs_add_link(struct btrfs_trans_handle *trans, | |||
6372 | name_len * 2); | 6372 | name_len * 2); |
6373 | inode_inc_iversion(parent_inode); | 6373 | inode_inc_iversion(parent_inode); |
6374 | parent_inode->i_mtime = parent_inode->i_ctime = | 6374 | parent_inode->i_mtime = parent_inode->i_ctime = |
6375 | current_fs_time(parent_inode->i_sb); | 6375 | current_time(parent_inode); |
6376 | ret = btrfs_update_inode(trans, root, parent_inode); | 6376 | ret = btrfs_update_inode(trans, root, parent_inode); |
6377 | if (ret) | 6377 | if (ret) |
6378 | btrfs_abort_transaction(trans, ret); | 6378 | btrfs_abort_transaction(trans, ret); |
@@ -6590,7 +6590,7 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir, | |||
6590 | BTRFS_I(inode)->dir_index = 0ULL; | 6590 | BTRFS_I(inode)->dir_index = 0ULL; |
6591 | inc_nlink(inode); | 6591 | inc_nlink(inode); |
6592 | inode_inc_iversion(inode); | 6592 | inode_inc_iversion(inode); |
6593 | inode->i_ctime = current_fs_time(inode->i_sb); | 6593 | inode->i_ctime = current_time(inode); |
6594 | ihold(inode); | 6594 | ihold(inode); |
6595 | set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags); | 6595 | set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags); |
6596 | 6596 | ||
@@ -9492,7 +9492,7 @@ static int btrfs_rename_exchange(struct inode *old_dir, | |||
9492 | struct btrfs_root *dest = BTRFS_I(new_dir)->root; | 9492 | struct btrfs_root *dest = BTRFS_I(new_dir)->root; |
9493 | struct inode *new_inode = new_dentry->d_inode; | 9493 | struct inode *new_inode = new_dentry->d_inode; |
9494 | struct inode *old_inode = old_dentry->d_inode; | 9494 | struct inode *old_inode = old_dentry->d_inode; |
9495 | struct timespec ctime = CURRENT_TIME; | 9495 | struct timespec ctime = current_time(old_inode); |
9496 | struct dentry *parent; | 9496 | struct dentry *parent; |
9497 | u64 old_ino = btrfs_ino(old_inode); | 9497 | u64 old_ino = btrfs_ino(old_inode); |
9498 | u64 new_ino = btrfs_ino(new_inode); | 9498 | u64 new_ino = btrfs_ino(new_inode); |
@@ -9860,7 +9860,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
9860 | inode_inc_iversion(old_inode); | 9860 | inode_inc_iversion(old_inode); |
9861 | old_dir->i_ctime = old_dir->i_mtime = | 9861 | old_dir->i_ctime = old_dir->i_mtime = |
9862 | new_dir->i_ctime = new_dir->i_mtime = | 9862 | new_dir->i_ctime = new_dir->i_mtime = |
9863 | old_inode->i_ctime = current_fs_time(old_dir->i_sb); | 9863 | old_inode->i_ctime = current_time(old_dir); |
9864 | 9864 | ||
9865 | if (old_dentry->d_parent != new_dentry->d_parent) | 9865 | if (old_dentry->d_parent != new_dentry->d_parent) |
9866 | btrfs_record_unlink_dir(trans, old_dir, old_inode, 1); | 9866 | btrfs_record_unlink_dir(trans, old_dir, old_inode, 1); |
@@ -9885,7 +9885,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
9885 | 9885 | ||
9886 | if (new_inode) { | 9886 | if (new_inode) { |
9887 | inode_inc_iversion(new_inode); | 9887 | inode_inc_iversion(new_inode); |
9888 | new_inode->i_ctime = current_fs_time(new_inode->i_sb); | 9888 | new_inode->i_ctime = current_time(new_inode); |
9889 | if (unlikely(btrfs_ino(new_inode) == | 9889 | if (unlikely(btrfs_ino(new_inode) == |
9890 | BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)) { | 9890 | BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)) { |
9891 | root_objectid = BTRFS_I(new_inode)->location.objectid; | 9891 | root_objectid = BTRFS_I(new_inode)->location.objectid; |
@@ -10403,7 +10403,7 @@ next: | |||
10403 | *alloc_hint = ins.objectid + ins.offset; | 10403 | *alloc_hint = ins.objectid + ins.offset; |
10404 | 10404 | ||
10405 | inode_inc_iversion(inode); | 10405 | inode_inc_iversion(inode); |
10406 | inode->i_ctime = current_fs_time(inode->i_sb); | 10406 | inode->i_ctime = current_time(inode); |
10407 | BTRFS_I(inode)->flags |= BTRFS_INODE_PREALLOC; | 10407 | BTRFS_I(inode)->flags |= BTRFS_INODE_PREALLOC; |
10408 | if (!(mode & FALLOC_FL_KEEP_SIZE) && | 10408 | if (!(mode & FALLOC_FL_KEEP_SIZE) && |
10409 | (actual_len > inode->i_size) && | 10409 | (actual_len > inode->i_size) && |
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index b2a2da5893af..c48e37444717 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -349,7 +349,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) | |||
349 | 349 | ||
350 | btrfs_update_iflags(inode); | 350 | btrfs_update_iflags(inode); |
351 | inode_inc_iversion(inode); | 351 | inode_inc_iversion(inode); |
352 | inode->i_ctime = current_fs_time(inode->i_sb); | 352 | inode->i_ctime = current_time(inode); |
353 | ret = btrfs_update_inode(trans, root, inode); | 353 | ret = btrfs_update_inode(trans, root, inode); |
354 | 354 | ||
355 | btrfs_end_transaction(trans, root); | 355 | btrfs_end_transaction(trans, root); |
@@ -445,7 +445,7 @@ static noinline int create_subvol(struct inode *dir, | |||
445 | struct btrfs_root *root = BTRFS_I(dir)->root; | 445 | struct btrfs_root *root = BTRFS_I(dir)->root; |
446 | struct btrfs_root *new_root; | 446 | struct btrfs_root *new_root; |
447 | struct btrfs_block_rsv block_rsv; | 447 | struct btrfs_block_rsv block_rsv; |
448 | struct timespec cur_time = current_fs_time(dir->i_sb); | 448 | struct timespec cur_time = current_time(dir); |
449 | struct inode *inode; | 449 | struct inode *inode; |
450 | int ret; | 450 | int ret; |
451 | int err; | 451 | int err; |
@@ -3279,7 +3279,7 @@ static int clone_finish_inode_update(struct btrfs_trans_handle *trans, | |||
3279 | 3279 | ||
3280 | inode_inc_iversion(inode); | 3280 | inode_inc_iversion(inode); |
3281 | if (!no_time_update) | 3281 | if (!no_time_update) |
3282 | inode->i_mtime = inode->i_ctime = current_fs_time(inode->i_sb); | 3282 | inode->i_mtime = inode->i_ctime = current_time(inode); |
3283 | /* | 3283 | /* |
3284 | * We round up to the block size at eof when determining which | 3284 | * We round up to the block size at eof when determining which |
3285 | * extents to clone above, but shouldn't round up the file size. | 3285 | * extents to clone above, but shouldn't round up the file size. |
@@ -5094,7 +5094,7 @@ static long _btrfs_ioctl_set_received_subvol(struct file *file, | |||
5094 | struct btrfs_root *root = BTRFS_I(inode)->root; | 5094 | struct btrfs_root *root = BTRFS_I(inode)->root; |
5095 | struct btrfs_root_item *root_item = &root->root_item; | 5095 | struct btrfs_root_item *root_item = &root->root_item; |
5096 | struct btrfs_trans_handle *trans; | 5096 | struct btrfs_trans_handle *trans; |
5097 | struct timespec ct = current_fs_time(inode->i_sb); | 5097 | struct timespec ct = current_time(inode); |
5098 | int ret = 0; | 5098 | int ret = 0; |
5099 | int received_uuid_changed; | 5099 | int received_uuid_changed; |
5100 | 5100 | ||
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 95d41919d034..c294313ea2c8 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -1474,7 +1474,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1474 | parent_root = BTRFS_I(parent_inode)->root; | 1474 | parent_root = BTRFS_I(parent_inode)->root; |
1475 | record_root_in_trans(trans, parent_root, 0); | 1475 | record_root_in_trans(trans, parent_root, 0); |
1476 | 1476 | ||
1477 | cur_time = current_fs_time(parent_inode->i_sb); | 1477 | cur_time = current_time(parent_inode); |
1478 | 1478 | ||
1479 | /* | 1479 | /* |
1480 | * insert the directory item | 1480 | * insert the directory item |
@@ -1630,7 +1630,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, | |||
1630 | btrfs_i_size_write(parent_inode, parent_inode->i_size + | 1630 | btrfs_i_size_write(parent_inode, parent_inode->i_size + |
1631 | dentry->d_name.len * 2); | 1631 | dentry->d_name.len * 2); |
1632 | parent_inode->i_mtime = parent_inode->i_ctime = | 1632 | parent_inode->i_mtime = parent_inode->i_ctime = |
1633 | current_fs_time(parent_inode->i_sb); | 1633 | current_time(parent_inode); |
1634 | ret = btrfs_update_inode_fallback(trans, parent_root, parent_inode); | 1634 | ret = btrfs_update_inode_fallback(trans, parent_root, parent_inode); |
1635 | if (ret) { | 1635 | if (ret) { |
1636 | btrfs_abort_transaction(trans, ret); | 1636 | btrfs_abort_transaction(trans, ret); |
diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index d1a177a3dbe8..fccbf5567e78 100644 --- a/fs/btrfs/xattr.c +++ b/fs/btrfs/xattr.c | |||
@@ -252,7 +252,7 @@ int __btrfs_setxattr(struct btrfs_trans_handle *trans, | |||
252 | goto out; | 252 | goto out; |
253 | 253 | ||
254 | inode_inc_iversion(inode); | 254 | inode_inc_iversion(inode); |
255 | inode->i_ctime = current_fs_time(inode->i_sb); | 255 | inode->i_ctime = current_time(inode); |
256 | set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags); | 256 | set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags); |
257 | ret = btrfs_update_inode(trans, root, inode); | 257 | ret = btrfs_update_inode(trans, root, inode); |
258 | BUG_ON(ret); | 258 | BUG_ON(ret); |
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 0f5375d8e030..a37a343fbd0f 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -886,7 +886,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, | |||
886 | int num_pages = 0; | 886 | int num_pages = 0; |
887 | int flags; | 887 | int flags; |
888 | int ret; | 888 | int ret; |
889 | struct timespec mtime = current_fs_time(inode->i_sb); | 889 | struct timespec mtime = current_time(inode); |
890 | size_t count = iov_iter_count(iter); | 890 | size_t count = iov_iter_count(iter); |
891 | loff_t pos = iocb->ki_pos; | 891 | loff_t pos = iocb->ki_pos; |
892 | bool write = iov_iter_rw(iter) == WRITE; | 892 | bool write = iov_iter_rw(iter) == WRITE; |
@@ -1091,7 +1091,7 @@ ceph_sync_write(struct kiocb *iocb, struct iov_iter *from, loff_t pos, | |||
1091 | int flags; | 1091 | int flags; |
1092 | int check_caps = 0; | 1092 | int check_caps = 0; |
1093 | int ret; | 1093 | int ret; |
1094 | struct timespec mtime = current_fs_time(inode->i_sb); | 1094 | struct timespec mtime = current_time(inode); |
1095 | size_t count = iov_iter_count(from); | 1095 | size_t count = iov_iter_count(from); |
1096 | 1096 | ||
1097 | if (ceph_snap(file_inode(file)) != CEPH_NOSNAP) | 1097 | if (ceph_snap(file_inode(file)) != CEPH_NOSNAP) |
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index dd3a6dbf71eb..ca1ccf741771 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c | |||
@@ -2080,7 +2080,7 @@ int __ceph_setattr(struct inode *inode, struct iattr *attr) | |||
2080 | if (dirtied) { | 2080 | if (dirtied) { |
2081 | inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied, | 2081 | inode_dirty_flags = __ceph_mark_dirty_caps(ci, dirtied, |
2082 | &prealloc_cf); | 2082 | &prealloc_cf); |
2083 | inode->i_ctime = current_fs_time(inode->i_sb); | 2083 | inode->i_ctime = current_time(inode); |
2084 | } | 2084 | } |
2085 | 2085 | ||
2086 | release &= issued; | 2086 | release &= issued; |
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index adc231892b0d..40b703217977 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -1034,7 +1034,7 @@ retry: | |||
1034 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, | 1034 | dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, |
1035 | &prealloc_cf); | 1035 | &prealloc_cf); |
1036 | ci->i_xattrs.dirty = true; | 1036 | ci->i_xattrs.dirty = true; |
1037 | inode->i_ctime = current_fs_time(inode->i_sb); | 1037 | inode->i_ctime = current_time(inode); |
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | spin_unlock(&ci->i_ceph_lock); | 1040 | spin_unlock(&ci->i_ceph_lock); |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 579e41b350a2..00b6bf08cdba 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1878,7 +1878,7 @@ static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to) | |||
1878 | write_data, to - from, &offset); | 1878 | write_data, to - from, &offset); |
1879 | cifsFileInfo_put(open_file); | 1879 | cifsFileInfo_put(open_file); |
1880 | /* Does mm or vfs already set times? */ | 1880 | /* Does mm or vfs already set times? */ |
1881 | inode->i_atime = inode->i_mtime = current_fs_time(inode->i_sb); | 1881 | inode->i_atime = inode->i_mtime = current_time(inode); |
1882 | if ((bytes_written > 0) && (offset)) | 1882 | if ((bytes_written > 0) && (offset)) |
1883 | rc = 0; | 1883 | rc = 0; |
1884 | else if (bytes_written < 0) | 1884 | else if (bytes_written < 0) |
@@ -3571,7 +3571,7 @@ static int cifs_readpage_worker(struct file *file, struct page *page, | |||
3571 | cifs_dbg(FYI, "Bytes read %d\n", rc); | 3571 | cifs_dbg(FYI, "Bytes read %d\n", rc); |
3572 | 3572 | ||
3573 | file_inode(file)->i_atime = | 3573 | file_inode(file)->i_atime = |
3574 | current_fs_time(file_inode(file)->i_sb); | 3574 | current_time(file_inode(file)); |
3575 | 3575 | ||
3576 | if (PAGE_SIZE > rc) | 3576 | if (PAGE_SIZE > rc) |
3577 | memset(read_data + rc, 0, PAGE_SIZE - rc); | 3577 | memset(read_data + rc, 0, PAGE_SIZE - rc); |
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index 0387968e6f47..ad718e5e37bb 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -76,7 +76,7 @@ int configfs_setattr(struct dentry * dentry, struct iattr * iattr) | |||
76 | sd_iattr->ia_uid = GLOBAL_ROOT_UID; | 76 | sd_iattr->ia_uid = GLOBAL_ROOT_UID; |
77 | sd_iattr->ia_gid = GLOBAL_ROOT_GID; | 77 | sd_iattr->ia_gid = GLOBAL_ROOT_GID; |
78 | sd_iattr->ia_atime = sd_iattr->ia_mtime = | 78 | sd_iattr->ia_atime = sd_iattr->ia_mtime = |
79 | sd_iattr->ia_ctime = current_fs_time(inode->i_sb); | 79 | sd_iattr->ia_ctime = current_time(inode); |
80 | sd->s_iattr = sd_iattr; | 80 | sd->s_iattr = sd_iattr; |
81 | } | 81 | } |
82 | /* attributes were changed atleast once in past */ | 82 | /* attributes were changed atleast once in past */ |
@@ -113,7 +113,7 @@ static inline void set_default_inode_attr(struct inode * inode, umode_t mode) | |||
113 | { | 113 | { |
114 | inode->i_mode = mode; | 114 | inode->i_mode = mode; |
115 | inode->i_atime = inode->i_mtime = | 115 | inode->i_atime = inode->i_mtime = |
116 | inode->i_ctime = current_fs_time(inode->i_sb); | 116 | inode->i_ctime = current_time(inode); |
117 | } | 117 | } |
118 | 118 | ||
119 | static inline void set_inode_attr(struct inode * inode, struct iattr * iattr) | 119 | static inline void set_inode_attr(struct inode * inode, struct iattr * iattr) |
@@ -197,7 +197,7 @@ int configfs_create(struct dentry * dentry, umode_t mode, void (*init)(struct in | |||
197 | return -ENOMEM; | 197 | return -ENOMEM; |
198 | 198 | ||
199 | p_inode = d_inode(dentry->d_parent); | 199 | p_inode = d_inode(dentry->d_parent); |
200 | p_inode->i_mtime = p_inode->i_ctime = current_fs_time(p_inode->i_sb); | 200 | p_inode->i_mtime = p_inode->i_ctime = current_time(p_inode); |
201 | configfs_set_inode_lock_class(sd, inode); | 201 | configfs_set_inode_lock_class(sd, inode); |
202 | 202 | ||
203 | init(inode); | 203 | init(inode); |
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 72361baf9da7..56a3c82a5785 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -45,7 +45,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb) | |||
45 | if (inode) { | 45 | if (inode) { |
46 | inode->i_ino = get_next_ino(); | 46 | inode->i_ino = get_next_ino(); |
47 | inode->i_atime = inode->i_mtime = | 47 | inode->i_atime = inode->i_mtime = |
48 | inode->i_ctime = current_fs_time(sb); | 48 | inode->i_ctime = current_time(inode); |
49 | } | 49 | } |
50 | return inode; | 50 | return inode; |
51 | } | 51 | } |
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index c8898b5148eb..62f76ea6cb3c 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c | |||
@@ -541,7 +541,7 @@ static int __f2fs_setxattr(struct inode *inode, int index, | |||
541 | 541 | ||
542 | if (is_inode_flag_set(inode, FI_ACL_MODE)) { | 542 | if (is_inode_flag_set(inode, FI_ACL_MODE)) { |
543 | inode->i_mode = F2FS_I(inode)->i_acl_mode; | 543 | inode->i_mode = F2FS_I(inode)->i_acl_mode; |
544 | inode->i_ctime = CURRENT_TIME; | 544 | inode->i_ctime = current_time(inode); |
545 | clear_inode_flag(inode, FI_ACL_MODE); | 545 | clear_inode_flag(inode, FI_ACL_MODE); |
546 | } | 546 | } |
547 | if (index == F2FS_XATTR_INDEX_ENCRYPTION && | 547 | if (index == F2FS_XATTR_INDEX_ENCRYPTION && |
diff --git a/fs/fat/file.c b/fs/fat/file.c index 811bbe0ab7a3..fc71ff524367 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c | |||
@@ -63,7 +63,7 @@ static int fat_ioctl_set_attributes(struct file *file, u32 __user *user_attr) | |||
63 | 63 | ||
64 | /* Equivalent to a chmod() */ | 64 | /* Equivalent to a chmod() */ |
65 | ia.ia_valid = ATTR_MODE | ATTR_CTIME; | 65 | ia.ia_valid = ATTR_MODE | ATTR_CTIME; |
66 | ia.ia_ctime = current_fs_time(inode->i_sb); | 66 | ia.ia_ctime = current_time(inode); |
67 | if (is_dir) | 67 | if (is_dir) |
68 | ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); | 68 | ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); |
69 | else { | 69 | else { |
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index c47b7780ce37..8de80dc563c5 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -637,7 +637,7 @@ static int fuse_symlink(struct inode *dir, struct dentry *entry, | |||
637 | static inline void fuse_update_ctime(struct inode *inode) | 637 | static inline void fuse_update_ctime(struct inode *inode) |
638 | { | 638 | { |
639 | if (!IS_NOCMTIME(inode)) { | 639 | if (!IS_NOCMTIME(inode)) { |
640 | inode->i_ctime = current_fs_time(inode->i_sb); | 640 | inode->i_ctime = current_time(inode); |
641 | mark_inode_dirty_sync(inode); | 641 | mark_inode_dirty_sync(inode); |
642 | } | 642 | } |
643 | } | 643 | } |
diff --git a/fs/inode.c b/fs/inode.c index 2172d0f77011..cadf75fb579e 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -1636,7 +1636,7 @@ bool atime_needs_update(const struct path *path, struct inode *inode) | |||
1636 | if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) | 1636 | if ((mnt->mnt_flags & MNT_NODIRATIME) && S_ISDIR(inode->i_mode)) |
1637 | return false; | 1637 | return false; |
1638 | 1638 | ||
1639 | now = current_fs_time(inode->i_sb); | 1639 | now = current_time(inode); |
1640 | 1640 | ||
1641 | if (!relatime_need_update(mnt, inode, now)) | 1641 | if (!relatime_need_update(mnt, inode, now)) |
1642 | return false; | 1642 | return false; |
@@ -1670,7 +1670,7 @@ void touch_atime(const struct path *path) | |||
1670 | * We may also fail on filesystems that have the ability to make parts | 1670 | * We may also fail on filesystems that have the ability to make parts |
1671 | * of the fs read only, e.g. subvolumes in Btrfs. | 1671 | * of the fs read only, e.g. subvolumes in Btrfs. |
1672 | */ | 1672 | */ |
1673 | now = current_fs_time(inode->i_sb); | 1673 | now = current_time(inode); |
1674 | update_time(inode, &now, S_ATIME); | 1674 | update_time(inode, &now, S_ATIME); |
1675 | __mnt_drop_write(mnt); | 1675 | __mnt_drop_write(mnt); |
1676 | skip_update: | 1676 | skip_update: |
@@ -1793,7 +1793,7 @@ int file_update_time(struct file *file) | |||
1793 | if (IS_NOCMTIME(inode)) | 1793 | if (IS_NOCMTIME(inode)) |
1794 | return 0; | 1794 | return 0; |
1795 | 1795 | ||
1796 | now = current_fs_time(inode->i_sb); | 1796 | now = current_time(inode); |
1797 | if (!timespec_equal(&inode->i_mtime, &now)) | 1797 | if (!timespec_equal(&inode->i_mtime, &now)) |
1798 | sync_it = S_MTIME; | 1798 | sync_it = S_MTIME; |
1799 | 1799 | ||
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index b05d0b4c68f6..10449c1deac0 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c | |||
@@ -1281,7 +1281,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1281 | old_ip->i_ctime = current_time(old_ip); | 1281 | old_ip->i_ctime = current_time(old_ip); |
1282 | mark_inode_dirty(old_ip); | 1282 | mark_inode_dirty(old_ip); |
1283 | 1283 | ||
1284 | new_dir->i_ctime = new_dir->i_mtime = current_fs_time(new_dir->i_sb); | 1284 | new_dir->i_ctime = new_dir->i_mtime = current_time(new_dir); |
1285 | mark_inode_dirty(new_dir); | 1285 | mark_inode_dirty(new_dir); |
1286 | 1286 | ||
1287 | /* Build list of inodes modified by this transaction */ | 1287 | /* Build list of inodes modified by this transaction */ |
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index 63b925d5ba1e..43f6848266d5 100644 --- a/fs/kernfs/inode.c +++ b/fs/kernfs/inode.c | |||
@@ -241,7 +241,7 @@ static inline void set_default_inode_attr(struct inode *inode, umode_t mode) | |||
241 | { | 241 | { |
242 | inode->i_mode = mode; | 242 | inode->i_mode = mode; |
243 | inode->i_atime = inode->i_mtime = | 243 | inode->i_atime = inode->i_mtime = |
244 | inode->i_ctime = current_fs_time(inode->i_sb); | 244 | inode->i_ctime = current_time(inode); |
245 | } | 245 | } |
246 | 246 | ||
247 | static inline void set_inode_attr(struct inode *inode, struct iattr *iattr) | 247 | static inline void set_inode_attr(struct inode *inode, struct iattr *iattr) |
diff --git a/fs/locks.c b/fs/locks.c index ee1b15f6fc13..b5152b067f37 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1539,7 +1539,7 @@ void lease_get_mtime(struct inode *inode, struct timespec *time) | |||
1539 | } | 1539 | } |
1540 | 1540 | ||
1541 | if (has_lease) | 1541 | if (has_lease) |
1542 | *time = current_fs_time(inode->i_sb); | 1542 | *time = current_time(inode); |
1543 | else | 1543 | else |
1544 | *time = inode->i_mtime; | 1544 | *time = inode->i_mtime; |
1545 | } | 1545 | } |
diff --git a/fs/nfsd/blocklayout.c b/fs/nfsd/blocklayout.c index 5a1708441510..0780ff864539 100644 --- a/fs/nfsd/blocklayout.c +++ b/fs/nfsd/blocklayout.c | |||
@@ -123,7 +123,7 @@ nfsd4_block_commit_blocks(struct inode *inode, struct nfsd4_layoutcommit *lcp, | |||
123 | 123 | ||
124 | if (lcp->lc_mtime.tv_nsec == UTIME_NOW || | 124 | if (lcp->lc_mtime.tv_nsec == UTIME_NOW || |
125 | timespec_compare(&lcp->lc_mtime, &inode->i_mtime) < 0) | 125 | timespec_compare(&lcp->lc_mtime, &inode->i_mtime) < 0) |
126 | lcp->lc_mtime = current_fs_time(inode->i_sb); | 126 | lcp->lc_mtime = current_time(inode); |
127 | iattr.ia_valid |= ATTR_ATIME | ATTR_CTIME | ATTR_MTIME; | 127 | iattr.ia_valid |= ATTR_ATIME | ATTR_CTIME | ATTR_MTIME; |
128 | iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; | 128 | iattr.ia_atime = iattr.ia_ctime = iattr.ia_mtime = lcp->lc_mtime; |
129 | 129 | ||
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index e01287c964a8..6b7588a6f98c 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c | |||
@@ -2813,7 +2813,7 @@ done: | |||
2813 | * for real. | 2813 | * for real. |
2814 | */ | 2814 | */ |
2815 | if (!IS_NOCMTIME(VFS_I(base_ni)) && !IS_RDONLY(VFS_I(base_ni))) { | 2815 | if (!IS_NOCMTIME(VFS_I(base_ni)) && !IS_RDONLY(VFS_I(base_ni))) { |
2816 | struct timespec now = current_fs_time(VFS_I(base_ni)->i_sb); | 2816 | struct timespec now = current_time(VFS_I(base_ni)); |
2817 | int sync_it = 0; | 2817 | int sync_it = 0; |
2818 | 2818 | ||
2819 | if (!timespec_equal(&VFS_I(base_ni)->i_mtime, &now) || | 2819 | if (!timespec_equal(&VFS_I(base_ni)->i_mtime, &now) || |
diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index d15d492ce47b..d3c009626032 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c | |||
@@ -2692,7 +2692,7 @@ mft_rec_already_initialized: | |||
2692 | 2692 | ||
2693 | /* Set the inode times to the current time. */ | 2693 | /* Set the inode times to the current time. */ |
2694 | vi->i_atime = vi->i_mtime = vi->i_ctime = | 2694 | vi->i_atime = vi->i_mtime = vi->i_ctime = |
2695 | current_fs_time(vi->i_sb); | 2695 | current_time(vi); |
2696 | /* | 2696 | /* |
2697 | * Set the file size to 0, the ntfs inode sizes are set to 0 by | 2697 | * Set the file size to 0, the ntfs inode sizes are set to 0 by |
2698 | * the call to ntfs_init_big_inode() below. | 2698 | * the call to ntfs_init_big_inode() below. |
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c index 62c525936ee8..e1ab95529231 100644 --- a/fs/orangefs/namei.c +++ b/fs/orangefs/namei.c | |||
@@ -81,7 +81,7 @@ static int orangefs_create(struct inode *dir, | |||
81 | dentry->d_name.name); | 81 | dentry->d_name.name); |
82 | 82 | ||
83 | SetMtimeFlag(parent); | 83 | SetMtimeFlag(parent); |
84 | dir->i_mtime = dir->i_ctime = current_fs_time(dir->i_sb); | 84 | dir->i_mtime = dir->i_ctime = current_time(dir); |
85 | mark_inode_dirty_sync(dir); | 85 | mark_inode_dirty_sync(dir); |
86 | ret = 0; | 86 | ret = 0; |
87 | out: | 87 | out: |
@@ -254,7 +254,7 @@ static int orangefs_unlink(struct inode *dir, struct dentry *dentry) | |||
254 | drop_nlink(inode); | 254 | drop_nlink(inode); |
255 | 255 | ||
256 | SetMtimeFlag(parent); | 256 | SetMtimeFlag(parent); |
257 | dir->i_mtime = dir->i_ctime = current_fs_time(dir->i_sb); | 257 | dir->i_mtime = dir->i_ctime = current_time(dir); |
258 | mark_inode_dirty_sync(dir); | 258 | mark_inode_dirty_sync(dir); |
259 | } | 259 | } |
260 | return ret; | 260 | return ret; |
@@ -331,7 +331,7 @@ static int orangefs_symlink(struct inode *dir, | |||
331 | dentry->d_name.name); | 331 | dentry->d_name.name); |
332 | 332 | ||
333 | SetMtimeFlag(parent); | 333 | SetMtimeFlag(parent); |
334 | dir->i_mtime = dir->i_ctime = current_fs_time(dir->i_sb); | 334 | dir->i_mtime = dir->i_ctime = current_time(dir); |
335 | mark_inode_dirty_sync(dir); | 335 | mark_inode_dirty_sync(dir); |
336 | ret = 0; | 336 | ret = 0; |
337 | out: | 337 | out: |
@@ -399,7 +399,7 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode | |||
399 | * across clients; keep constant at 1. | 399 | * across clients; keep constant at 1. |
400 | */ | 400 | */ |
401 | SetMtimeFlag(parent); | 401 | SetMtimeFlag(parent); |
402 | dir->i_mtime = dir->i_ctime = current_fs_time(dir->i_sb); | 402 | dir->i_mtime = dir->i_ctime = current_time(dir); |
403 | mark_inode_dirty_sync(dir); | 403 | mark_inode_dirty_sync(dir); |
404 | out: | 404 | out: |
405 | op_release(new_op); | 405 | op_release(new_op); |
@@ -443,7 +443,7 @@ static int orangefs_rename(struct inode *old_dir, | |||
443 | ret); | 443 | ret); |
444 | 444 | ||
445 | if (new_dentry->d_inode) | 445 | if (new_dentry->d_inode) |
446 | new_dentry->d_inode->i_ctime = CURRENT_TIME; | 446 | new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); |
447 | 447 | ||
448 | op_release(new_op); | 448 | op_release(new_op); |
449 | return ret; | 449 | return ret; |
diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c index e77db621ec89..c1ed18a10ce4 100644 --- a/fs/udf/ialloc.c +++ b/fs/udf/ialloc.c | |||
@@ -121,7 +121,7 @@ struct inode *udf_new_inode(struct inode *dir, umode_t mode) | |||
121 | else | 121 | else |
122 | iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; | 122 | iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; |
123 | inode->i_mtime = inode->i_atime = inode->i_ctime = | 123 | inode->i_mtime = inode->i_atime = inode->i_ctime = |
124 | iinfo->i_crtime = current_fs_time(inode->i_sb); | 124 | iinfo->i_crtime = current_time(inode); |
125 | if (unlikely(insert_inode_locked(inode) < 0)) { | 125 | if (unlikely(insert_inode_locked(inode) < 0)) { |
126 | make_bad_inode(inode); | 126 | make_bad_inode(inode); |
127 | iput(inode); | 127 | iput(inode); |
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 55aa587bbc38..aad46401ede5 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c | |||
@@ -886,7 +886,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block, | |||
886 | *new = 1; | 886 | *new = 1; |
887 | iinfo->i_next_alloc_block = block; | 887 | iinfo->i_next_alloc_block = block; |
888 | iinfo->i_next_alloc_goal = newblocknum; | 888 | iinfo->i_next_alloc_goal = newblocknum; |
889 | inode->i_ctime = current_fs_time(inode->i_sb); | 889 | inode->i_ctime = current_time(inode); |
890 | 890 | ||
891 | if (IS_SYNC(inode)) | 891 | if (IS_SYNC(inode)) |
892 | udf_sync_inode(inode); | 892 | udf_sync_inode(inode); |
@@ -1268,7 +1268,7 @@ set_size: | |||
1268 | up_write(&iinfo->i_data_sem); | 1268 | up_write(&iinfo->i_data_sem); |
1269 | } | 1269 | } |
1270 | update_time: | 1270 | update_time: |
1271 | inode->i_mtime = inode->i_ctime = current_fs_time(inode->i_sb); | 1271 | inode->i_mtime = inode->i_ctime = current_time(inode); |
1272 | if (IS_SYNC(inode)) | 1272 | if (IS_SYNC(inode)) |
1273 | udf_sync_inode(inode); | 1273 | udf_sync_inode(inode); |
1274 | else | 1274 | else |
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index c3e5c9679371..61af3f1e1973 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -616,7 +616,7 @@ static int udf_add_nondir(struct dentry *dentry, struct inode *inode) | |||
616 | *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = | 616 | *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = |
617 | cpu_to_le32(iinfo->i_unique & 0x00000000FFFFFFFFUL); | 617 | cpu_to_le32(iinfo->i_unique & 0x00000000FFFFFFFFUL); |
618 | udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); | 618 | udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); |
619 | dir->i_ctime = dir->i_mtime = current_fs_time(dir->i_sb); | 619 | dir->i_ctime = dir->i_mtime = current_time(dir); |
620 | mark_inode_dirty(dir); | 620 | mark_inode_dirty(dir); |
621 | if (fibh.sbh != fibh.ebh) | 621 | if (fibh.sbh != fibh.ebh) |
622 | brelse(fibh.ebh); | 622 | brelse(fibh.ebh); |
@@ -730,7 +730,7 @@ static int udf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
730 | cfi.fileCharacteristics |= FID_FILE_CHAR_DIRECTORY; | 730 | cfi.fileCharacteristics |= FID_FILE_CHAR_DIRECTORY; |
731 | udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); | 731 | udf_write_fi(dir, &cfi, fi, &fibh, NULL, NULL); |
732 | inc_nlink(dir); | 732 | inc_nlink(dir); |
733 | dir->i_ctime = dir->i_mtime = current_fs_time(dir->i_sb); | 733 | dir->i_ctime = dir->i_mtime = current_time(dir); |
734 | mark_inode_dirty(dir); | 734 | mark_inode_dirty(dir); |
735 | unlock_new_inode(inode); | 735 | unlock_new_inode(inode); |
736 | d_instantiate(dentry, inode); | 736 | d_instantiate(dentry, inode); |
@@ -845,7 +845,7 @@ static int udf_rmdir(struct inode *dir, struct dentry *dentry) | |||
845 | inode->i_size = 0; | 845 | inode->i_size = 0; |
846 | inode_dec_link_count(dir); | 846 | inode_dec_link_count(dir); |
847 | inode->i_ctime = dir->i_ctime = dir->i_mtime = | 847 | inode->i_ctime = dir->i_ctime = dir->i_mtime = |
848 | current_fs_time(dir->i_sb); | 848 | current_time(inode); |
849 | mark_inode_dirty(dir); | 849 | mark_inode_dirty(dir); |
850 | 850 | ||
851 | end_rmdir: | 851 | end_rmdir: |
@@ -888,7 +888,7 @@ static int udf_unlink(struct inode *dir, struct dentry *dentry) | |||
888 | retval = udf_delete_entry(dir, fi, &fibh, &cfi); | 888 | retval = udf_delete_entry(dir, fi, &fibh, &cfi); |
889 | if (retval) | 889 | if (retval) |
890 | goto end_unlink; | 890 | goto end_unlink; |
891 | dir->i_ctime = dir->i_mtime = current_fs_time(dir->i_sb); | 891 | dir->i_ctime = dir->i_mtime = current_time(dir); |
892 | mark_inode_dirty(dir); | 892 | mark_inode_dirty(dir); |
893 | inode_dec_link_count(inode); | 893 | inode_dec_link_count(inode); |
894 | inode->i_ctime = dir->i_ctime; | 894 | inode->i_ctime = dir->i_ctime; |
@@ -1079,9 +1079,9 @@ static int udf_link(struct dentry *old_dentry, struct inode *dir, | |||
1079 | brelse(fibh.ebh); | 1079 | brelse(fibh.ebh); |
1080 | brelse(fibh.sbh); | 1080 | brelse(fibh.sbh); |
1081 | inc_nlink(inode); | 1081 | inc_nlink(inode); |
1082 | inode->i_ctime = current_fs_time(inode->i_sb); | 1082 | inode->i_ctime = current_time(inode); |
1083 | mark_inode_dirty(inode); | 1083 | mark_inode_dirty(inode); |
1084 | dir->i_ctime = dir->i_mtime = current_fs_time(dir->i_sb); | 1084 | dir->i_ctime = dir->i_mtime = current_time(dir); |
1085 | mark_inode_dirty(dir); | 1085 | mark_inode_dirty(dir); |
1086 | ihold(inode); | 1086 | ihold(inode); |
1087 | d_instantiate(dentry, inode); | 1087 | d_instantiate(dentry, inode); |
@@ -1172,7 +1172,7 @@ static int udf_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1172 | * Like most other Unix systems, set the ctime for inodes on a | 1172 | * Like most other Unix systems, set the ctime for inodes on a |
1173 | * rename. | 1173 | * rename. |
1174 | */ | 1174 | */ |
1175 | old_inode->i_ctime = current_fs_time(old_inode->i_sb); | 1175 | old_inode->i_ctime = current_time(old_inode); |
1176 | mark_inode_dirty(old_inode); | 1176 | mark_inode_dirty(old_inode); |
1177 | 1177 | ||
1178 | /* | 1178 | /* |
@@ -1188,11 +1188,11 @@ static int udf_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1188 | udf_delete_entry(old_dir, ofi, &ofibh, &ocfi); | 1188 | udf_delete_entry(old_dir, ofi, &ofibh, &ocfi); |
1189 | 1189 | ||
1190 | if (new_inode) { | 1190 | if (new_inode) { |
1191 | new_inode->i_ctime = current_fs_time(new_inode->i_sb); | 1191 | new_inode->i_ctime = current_time(new_inode); |
1192 | inode_dec_link_count(new_inode); | 1192 | inode_dec_link_count(new_inode); |
1193 | } | 1193 | } |
1194 | old_dir->i_ctime = old_dir->i_mtime = current_fs_time(old_dir->i_sb); | 1194 | old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir); |
1195 | new_dir->i_ctime = new_dir->i_mtime = current_fs_time(new_dir->i_sb); | 1195 | new_dir->i_ctime = new_dir->i_mtime = current_time(new_dir); |
1196 | mark_inode_dirty(old_dir); | 1196 | mark_inode_dirty(old_dir); |
1197 | mark_inode_dirty(new_dir); | 1197 | mark_inode_dirty(new_dir); |
1198 | 1198 | ||
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c index b6e527b8eccb..74f7c68105b9 100644 --- a/fs/xfs/xfs_acl.c +++ b/fs/xfs/xfs_acl.c | |||
@@ -236,7 +236,7 @@ xfs_set_mode(struct inode *inode, umode_t mode) | |||
236 | 236 | ||
237 | iattr.ia_valid = ATTR_MODE | ATTR_CTIME; | 237 | iattr.ia_valid = ATTR_MODE | ATTR_CTIME; |
238 | iattr.ia_mode = mode; | 238 | iattr.ia_mode = mode; |
239 | iattr.ia_ctime = current_fs_time(inode->i_sb); | 239 | iattr.ia_ctime = current_time(inode); |
240 | 240 | ||
241 | error = xfs_setattr_nonsize(XFS_I(inode), &iattr, XFS_ATTR_NOACL); | 241 | error = xfs_setattr_nonsize(XFS_I(inode), &iattr, XFS_ATTR_NOACL); |
242 | } | 242 | } |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index e08eaea6327b..020110b76a40 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -821,7 +821,7 @@ xfs_ialloc( | |||
821 | ip->i_d.di_nextents = 0; | 821 | ip->i_d.di_nextents = 0; |
822 | ASSERT(ip->i_d.di_nblocks == 0); | 822 | ASSERT(ip->i_d.di_nblocks == 0); |
823 | 823 | ||
824 | tv = current_fs_time(mp->m_super); | 824 | tv = current_time(inode); |
825 | inode->i_mtime = tv; | 825 | inode->i_mtime = tv; |
826 | inode->i_atime = tv; | 826 | inode->i_atime = tv; |
827 | inode->i_ctime = tv; | 827 | inode->i_ctime = tv; |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index b24c3102fa93..08c33f7fbe49 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -882,7 +882,7 @@ xfs_setattr_size( | |||
882 | if (newsize != oldsize && | 882 | if (newsize != oldsize && |
883 | !(iattr->ia_valid & (ATTR_CTIME | ATTR_MTIME))) { | 883 | !(iattr->ia_valid & (ATTR_CTIME | ATTR_MTIME))) { |
884 | iattr->ia_ctime = iattr->ia_mtime = | 884 | iattr->ia_ctime = iattr->ia_mtime = |
885 | current_fs_time(inode->i_sb); | 885 | current_time(inode); |
886 | iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; | 886 | iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME; |
887 | } | 887 | } |
888 | 888 | ||
diff --git a/fs/xfs/xfs_trans_inode.c b/fs/xfs/xfs_trans_inode.c index 11a3af08b5c7..dab8daa676f9 100644 --- a/fs/xfs/xfs_trans_inode.c +++ b/fs/xfs/xfs_trans_inode.c | |||
@@ -73,7 +73,7 @@ xfs_trans_ichgtime( | |||
73 | ASSERT(tp); | 73 | ASSERT(tp); |
74 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); | 74 | ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); |
75 | 75 | ||
76 | tv = current_fs_time(inode->i_sb); | 76 | tv = current_time(inode); |
77 | 77 | ||
78 | if (flags & XFS_ICHGTIME_MOD) | 78 | if (flags & XFS_ICHGTIME_MOD) |
79 | inode->i_mtime = tv; | 79 | inode->i_mtime = tv; |