Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932468AbWB0Wb7 (ORCPT ); Mon, 27 Feb 2006 17:31:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932087AbWB0Wb4 (ORCPT ); Mon, 27 Feb 2006 17:31:56 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:22913 "EHLO sorel.sous-sol.org") by vger.kernel.org with ESMTP id S932358AbWB0Wb2 (ORCPT ); Mon, 27 Feb 2006 17:31:28 -0500 Message-Id: <20060227223358.884668000@sorel.sous-sol.org> References: <20060227223200.865548000@sorel.sous-sol.org> Date: Mon, 27 Feb 2006 14:32:27 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org, torvalds@osdl.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , akpm@osdl.org, alan@lxorguk.ukuu.org.uk, philipp.marek@bmlv.gv.at Subject: [patch 27/39] [PATCH] ramfs: update dir mtime and ctime Content-Disposition: inline; filename=ramfs-update-dir-mtime-and-ctime.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 39 -stable review patch. If anyone has any objections, please let us know. ------------------ Phil Marek points out that ramfs forgets to update a directory's mtime and ctime when it is modified. Cc: Signed-off-by: Andrew Morton Signed-off-by: Chris Wright --- fs/ramfs/inode.c | 2 ++ 1 files changed, 2 insertions(+) --- linux-2.6.15.4.orig/fs/ramfs/inode.c +++ linux-2.6.15.4/fs/ramfs/inode.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -105,6 +106,7 @@ ramfs_mknod(struct inode *dir, struct de d_instantiate(dentry, inode); dget(dentry); /* Extra count - pin the dentry in core */ error = 0; + dir->i_mtime = dir->i_ctime = CURRENT_TIME; } return error; } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/