Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754808AbcDYOUd (ORCPT ); Mon, 25 Apr 2016 10:20:33 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34393 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbcDYOU3 (ORCPT ); Mon, 25 Apr 2016 10:20:29 -0400 From: Salah Triki To: tigran@aivazian.fsnet.co.uk Cc: salah.triki@acm.org, linux-kernel@vger.kernel.org Subject: [PATCH V2] bfs: rename should update mtime Date: Mon, 25 Apr 2016 15:20:07 +0100 Message-Id: <1461594007-6077-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: 587 Lines: 21 bfs_rename should update ctime and mtime on target. Signed-off-by: Salah Triki --- fs/bfs/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 3ec6113..c69f7dc 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c @@ -254,6 +254,7 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry, if (new_inode) { new_inode->i_ctime = CURRENT_TIME_SEC; inode_dec_link_count(new_inode); + new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME_SEC; } mark_buffer_dirty_inode(old_bh, old_dir); error = 0; -- 1.9.1