From patchwork Tue Nov 23 19:50:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 350811 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oANK0RTg006157 for ; Tue, 23 Nov 2010 20:00:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751326Ab0KWUAW (ORCPT ); Tue, 23 Nov 2010 15:00:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969Ab0KWUAW (ORCPT ); Tue, 23 Nov 2010 15:00:22 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oANK0MRP013209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 23 Nov 2010 15:00:22 -0500 Received: from localhost.localdomain (test1244.test.redhat.com [10.10.10.244]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oANK0Log010747 for ; Tue, 23 Nov 2010 15:00:21 -0500 From: Josef Bacik To: linux-btrfs@vger.kernel.org Subject: [PATCH] Btrfs: update inode ctime when using links Date: Tue, 23 Nov 2010 14:50:59 -0500 Message-Id: <1290541859-25296-1-git-send-email-josef@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 23 Nov 2010 20:00:28 +0000 (UTC) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 25a8fa2..476f3b7 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)