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

gfs2: replace CURRENT_TIME with current_time

Link: http://lkml.kernel.org/r/20170420161852.0492bc3f@canb.auug.org.au
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Stephen Rothwell and committed by
Linus Torvalds
b32c8c76 24d0d03c

+2 -2
+2 -2
fs/gfs2/bmap.c
··· 1072 1072 /* Every transaction boundary, we rewrite the dinode 1073 1073 to keep its di_blocks current in case of failure. */ 1074 1074 ip->i_inode.i_mtime = ip->i_inode.i_ctime = 1075 - CURRENT_TIME; 1075 + current_time(&ip->i_inode); 1076 1076 gfs2_trans_add_meta(ip->i_gl, dibh); 1077 1077 gfs2_dinode_out(ip, dibh->b_data); 1078 1078 up_write(&ip->i_rw_mutex); ··· 1293 1293 gfs2_statfs_change(sdp, 0, +btotal, 0); 1294 1294 gfs2_quota_change(ip, -(s64)btotal, ip->i_inode.i_uid, 1295 1295 ip->i_inode.i_gid); 1296 - ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; 1296 + ip->i_inode.i_mtime = ip->i_inode.i_ctime = current_time(&ip->i_inode); 1297 1297 gfs2_trans_add_meta(ip->i_gl, dibh); 1298 1298 gfs2_dinode_out(ip, dibh->b_data); 1299 1299 up_write(&ip->i_rw_mutex);