Skip to content

Commit

Permalink
Btrfs: update inode ctime when using links
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef Bacik authored and Chris Mason committed Nov 27, 2010
1 parent 0ed42a6 commit bc1cbf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc1cbf1

Please sign in to comment.