lkml.org 
[lkml]   [2006]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ramfs and directory modification time
In-Reply-To: <20060224040400.2f093523.akpm@osdl.org>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-26 14:10    [W:0.293 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site