summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2010-11-23 19:50:59 +0000
committerChris Mason <chris.mason@oracle.com>2010-11-27 13:00:07 -0500
commitbc1cbf1f86aa2501efa9ca637c736fce6bcc4b1d (patch)
treeaf17fcd439f67eafc534e894168b397c563e2366 /fs/btrfs
parent0ed42a63f3edb144b091d9528401fce95c3c4d8d (diff)
downloadop-kernel-dev-bc1cbf1f86aa2501efa9ca637c736fce6bcc4b1d.zip
op-kernel-dev-bc1cbf1f86aa2501efa9ca637c736fce6bcc4b1d.tar.gz
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 <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 0eeacd9..6df921f 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)
OpenPOWER on IntegriCloud