diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 23:16:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-10 23:16:43 -0400 |
commit | 101105b1717f536ca741f940033996302d4ef191 (patch) | |
tree | 12ab41ae1b1b66105e9fa2ea763356d2be7e8b34 /fs/gfs2/inode.c | |
parent | 35ff96dfd3c9aaa921b3e8dcac76b7697f2dcec0 (diff) | |
parent | 3873691e5ab34fa26948643d038a2b98c4437298 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs updates from Al Viro:
">rename2() work from Miklos + current_time() from Deepa"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
fs: Replace current_fs_time() with current_time()
fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
fs: Replace CURRENT_TIME with current_time() for inode timestamps
fs: proc: Delete inode time initializations in proc_alloc_inode()
vfs: Add current_time() api
vfs: add note about i_op->rename changes to porting
fs: rename "rename2" i_op to "rename"
vfs: remove unused i_op->rename
fs: make remaining filesystems use .rename2
libfs: support RENAME_NOREPLACE in simple_rename()
fs: support RENAME_NOREPLACE for local filesystems
ncpfs: fix unused variable warning
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index f6c4f0058899..fe3f84995c48 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -656,7 +656,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, | |||
656 | set_nlink(inode, S_ISDIR(mode) ? 2 : 1); | 656 | set_nlink(inode, S_ISDIR(mode) ? 2 : 1); |
657 | inode->i_rdev = dev; | 657 | inode->i_rdev = dev; |
658 | inode->i_size = size; | 658 | inode->i_size = size; |
659 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 659 | inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); |
660 | gfs2_set_inode_blocks(inode, 1); | 660 | gfs2_set_inode_blocks(inode, 1); |
661 | munge_mode_uid_gid(dip, inode); | 661 | munge_mode_uid_gid(dip, inode); |
662 | check_and_update_goal(dip); | 662 | check_and_update_goal(dip); |
@@ -983,7 +983,7 @@ static int gfs2_link(struct dentry *old_dentry, struct inode *dir, | |||
983 | 983 | ||
984 | gfs2_trans_add_meta(ip->i_gl, dibh); | 984 | gfs2_trans_add_meta(ip->i_gl, dibh); |
985 | inc_nlink(&ip->i_inode); | 985 | inc_nlink(&ip->i_inode); |
986 | ip->i_inode.i_ctime = CURRENT_TIME; | 986 | ip->i_inode.i_ctime = current_time(&ip->i_inode); |
987 | ihold(inode); | 987 | ihold(inode); |
988 | d_instantiate(dentry, inode); | 988 | d_instantiate(dentry, inode); |
989 | mark_inode_dirty(inode); | 989 | mark_inode_dirty(inode); |
@@ -1067,7 +1067,7 @@ static int gfs2_unlink_inode(struct gfs2_inode *dip, | |||
1067 | return error; | 1067 | return error; |
1068 | 1068 | ||
1069 | ip->i_entries = 0; | 1069 | ip->i_entries = 0; |
1070 | inode->i_ctime = CURRENT_TIME; | 1070 | inode->i_ctime = current_time(inode); |
1071 | if (S_ISDIR(inode->i_mode)) | 1071 | if (S_ISDIR(inode->i_mode)) |
1072 | clear_nlink(inode); | 1072 | clear_nlink(inode); |
1073 | else | 1073 | else |
@@ -1330,7 +1330,7 @@ static int update_moved_ino(struct gfs2_inode *ip, struct gfs2_inode *ndip, | |||
1330 | error = gfs2_meta_inode_buffer(ip, &dibh); | 1330 | error = gfs2_meta_inode_buffer(ip, &dibh); |
1331 | if (error) | 1331 | if (error) |
1332 | return error; | 1332 | return error; |
1333 | ip->i_inode.i_ctime = CURRENT_TIME; | 1333 | ip->i_inode.i_ctime = current_time(&ip->i_inode); |
1334 | gfs2_trans_add_meta(ip->i_gl, dibh); | 1334 | gfs2_trans_add_meta(ip->i_gl, dibh); |
1335 | gfs2_dinode_out(ip, dibh->b_data); | 1335 | gfs2_dinode_out(ip, dibh->b_data); |
1336 | brelse(dibh); | 1336 | brelse(dibh); |
@@ -2055,7 +2055,7 @@ const struct inode_operations gfs2_dir_iops = { | |||
2055 | .mkdir = gfs2_mkdir, | 2055 | .mkdir = gfs2_mkdir, |
2056 | .rmdir = gfs2_unlink, | 2056 | .rmdir = gfs2_unlink, |
2057 | .mknod = gfs2_mknod, | 2057 | .mknod = gfs2_mknod, |
2058 | .rename2 = gfs2_rename2, | 2058 | .rename = gfs2_rename2, |
2059 | .permission = gfs2_permission, | 2059 | .permission = gfs2_permission, |
2060 | .setattr = gfs2_setattr, | 2060 | .setattr = gfs2_setattr, |
2061 | .getattr = gfs2_getattr, | 2061 | .getattr = gfs2_getattr, |