From: Josef Bacik Date: Tue, 23 Nov 2010 19:50:59 +0000 (+0000) Subject: Btrfs: update inode ctime when using links X-Git-Tag: v4.14-rc1~15898^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc1cbf1f86aa2501efa9ca637c736fce6bcc4b1d;p=platform%2Fkernel%2Flinux-rpi.git Btrfs: update inode ctime when using links Currently we fail xfstest 236 because we're not updating the inode ctime on link. This is a simple fix, and makes it so we pass 236 now. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0eeacd93e8e5..6df921f218fb 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4785,6 +4785,7 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir, return -EPERM; btrfs_inc_nlink(inode); + inode->i_ctime = CURRENT_TIME; err = btrfs_set_inode_index(dir, &index); if (err)