From: Peter Staubach Date: Mon, 6 Mar 2006 23:42:56 +0000 (-0800) Subject: [PATCH] ramfs needs to update directory m/ctime on symlink X-Git-Tag: v2.6.16-rc6~92 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ecbd3a632c8198744655b769c5c2b5a1455c1fba;p=linux-2.6-omap-h63xx.git [PATCH] ramfs needs to update directory m/ctime on symlink ramfs neglects to update the directory mtime and ctime fields when creating a new symbolic link. Ramfs was modified in 2.6.15 to update these fields when other types of entries are created. The symlink support is separate from that other support, so that change did not cover quite all of the possibilities. All of the directory content manipulation entry points now seem to be covered with respect to these time field updates. Signed-off-by: Peter Staubach Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index cde5d48994a..14bd2246fb6 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -137,6 +137,7 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * inode->i_gid = dir->i_gid; d_instantiate(dentry, inode); dget(dentry); + dir->i_mtime = dir->i_ctime = CURRENT_TIME; } else iput(inode); }