Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932621AbcDYODb (ORCPT ); Mon, 25 Apr 2016 10:03:31 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36644 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbcDYOD3 (ORCPT ); Mon, 25 Apr 2016 10:03:29 -0400 From: Salah Triki To: tigran@aivazian.fsnet.co.uk Cc: salah.triki@acm.org, linux-kernel@vger.kernel.org Subject: [PATCH] bfs: rename should update mtime Date: Mon, 25 Apr 2016 15:03:06 +0100 Message-Id: <1461592986-5542-1-git-send-email-salah.triki@acm.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 671 Lines: 22 bfs_rename should update mtime on target. Signed-off-by: Salah Triki --- fs/bfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 3ec6113..d5902d9 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c @@ -252,7 +252,7 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry, old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME_SEC; mark_inode_dirty(old_dir); if (new_inode) { - new_inode->i_ctime = CURRENT_TIME_SEC; + new_inode->i_ctime = new_inode->i_mtime = CURRENT_TIME_SEC; inode_dec_link_count(new_inode); } mark_buffer_dirty_inode(old_bh, old_dir); -- 1.9.1