From: Andrew Morton Date: Fri, 24 Feb 2006 21:04:23 +0000 (-0800) Subject: [PATCH] ramfs: update dir mtime and ctime X-Git-Tag: v2.6.16-rc5~29 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8dde0509e74ff6044cf1788c917a22facce9f68d;p=linux-2.6-omap-h63xx.git [PATCH] ramfs: update dir mtime and ctime 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: Linus Torvalds --- diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index c66bd5e4c05..cde5d48994a 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -104,6 +105,7 @@ ramfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) 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; }