Skip to contentSkip to conversation

gfs2: replace CURRENT_TIME with current_time

PATCH New [email protected] 1 participant 1 message May 8, 2017 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 99/114 gfs2: replace CURRENT_TIME with current_time

From: Stephen Rothwell <[email protected]>
Subject: gfs2: replace CURRENT_TIME with current_time

---

 fs/gfs2/bmap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/gfs2/bmap.c renamed from fs/gfs2/bmap.c~gfs2-replace-current_time-with-current_time +2 -2
diff -puN fs/gfs2/bmap.c~gfs2-replace-current_time-with-current_time fs/gfs2/bmap.c
@@ -1072,7 +1072,7 @@ out_unlock:
 			/* Every transaction boundary, we rewrite the dinode
 			   to keep its di_blocks current in case of failure. */
 			ip->i_inode.i_mtime = ip->i_inode.i_ctime =
-				CURRENT_TIME;
+				current_time(&ip->i_inode);
 			gfs2_trans_add_meta(ip->i_gl, dibh);
 			gfs2_dinode_out(ip, dibh->b_data);
 			up_write(&ip->i_rw_mutex);
@@ -1293,7 +1293,7 @@ static int trunc_dealloc(struct gfs2_ino
 		gfs2_statfs_change(sdp, 0, +btotal, 0);
 		gfs2_quota_change(ip, -(s64)btotal, ip->i_inode.i_uid,
 				  ip->i_inode.i_gid);
-		ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME;
+		ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode);
 		gfs2_trans_add_meta(ip->i_gl, dibh);
 		gfs2_dinode_out(ip, dibh->b_data);
 		up_write(&ip->i_rw_mutex);

_