aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_inode.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2007-01-18 17:41:23 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2007-02-05 13:37:38 -0500
commitddfe0627838ca0c0e8babb0dd2bd7f4b35e25bff (patch)
treea6348245a2a4d58705119a2cec5aabd650ee64a1 /fs/gfs2/ops_inode.c
parent90101c31867b7acc44286b425d50e1042aa55b8d (diff)
[GFS2] use CURRENT_TIME_SEC instead of get_seconds in gfs2
I was looking something else up and came across this... I don't honestly have a good reason to change it other than to make it like every other Linux filesystem in this regard. ;-) It doesn't functionally change anything, but makes some lines shorter. :) I'm also curious; why does gfs2 have 64-bits of on-disk timestamps, but not in timespec_t format, and only stores second resolutions? Seems like you're halfway to sub-second resolutions already. I suppose if that gets implemented then all of the below should instead be CURRENT_TIME not CURRENT_TIME_SEC. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r--fs/gfs2/ops_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c
index b2a12f44f59d..747c7316f5cc 100644
--- a/fs/gfs2/ops_inode.c
+++ b/fs/gfs2/ops_inode.c
@@ -728,7 +728,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry,
728 error = gfs2_meta_inode_buffer(ip, &dibh); 728 error = gfs2_meta_inode_buffer(ip, &dibh);
729 if (error) 729 if (error)
730 goto out_end_trans; 730 goto out_end_trans;
731 ip->i_inode.i_ctime.tv_sec = get_seconds(); 731 ip->i_inode.i_ctime = CURRENT_TIME_SEC;
732 gfs2_trans_add_bh(ip->i_gl, dibh, 1); 732 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
733 gfs2_dinode_out(ip, dibh->b_data); 733 gfs2_dinode_out(ip, dibh->b_data);
734 brelse(dibh); 734 brelse(dibh);