From 2ea9004864b918be34e742e38fb08d868600d020 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 17 Jul 2018 14:12:42 -0400 Subject: bcachefs: Fix mtime/ctime updates Also make inode flags consistent with how the rest of the inode is updated Signed-off-by: Kent Overstreet --- fs/bcachefs/acl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs/bcachefs/acl.c') diff --git a/fs/bcachefs/acl.c b/fs/bcachefs/acl.c index eaf5c8e138fb..7ee2022d9501 100644 --- a/fs/bcachefs/acl.c +++ b/fs/bcachefs/acl.c @@ -286,10 +286,9 @@ static int inode_update_for_set_acl_fn(struct bch_inode_info *inode, void *p) { struct bch_fs *c = inode->v.i_sb->s_fs_info; - struct timespec64 now = current_time(&inode->v); umode_t mode = (unsigned long) p; - bi->bi_ctime = timespec_to_bch2_time(c, now); + bi->bi_ctime = bch2_current_time(c); bi->bi_mode = mode; return 0; } -- cgit