Re: ramfs and directory modification time

From: Chuck Ebbert
Date: Sun Feb 26 2006 - 08:05:59 EST


In-Reply-To: <20060224040400.2f093523.akpm@xxxxxxxx>

On Fri, 24 Feb 2006 at 04:04:00 -0800, Andrew Morton wrote:

> --- devel/fs/ramfs/inode.c~ramfs-update-dir-mtime-and-ctime 2006-02-24 03:53:46.000000000 -0800
> +++ devel-akpm/fs/ramfs/inode.c 2006-02-24 03:54:29.000000000 -0800
> @@ -27,6 +27,7 @@
> #include <linux/fs.h>
> #include <linux/pagemap.h>
> #include <linux/highmem.h>
> +#include <linux/time.h>
> #include <linux/init.h>
> #include <linux/string.h>
> #include <linux/smp_lock.h>
> @@ -104,6 +105,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_SEC;
> }
> return error;
> }


Shouldn't that be CURRENT_TIME?

[me@tu ramfs]$ grep -i current_time *
inode.c: inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;


--
Chuck
"Equations are the Devil's sentences." --Stephen Colbert

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/