ramfs and directory modification time
In-Reply-To: <[email protected]>
Quoted 11 lines · Andrew Morton
fs/ramfs/inode.c 2006-02-24 03:54:29.000000000 -0800 renamed from fs/ramfs/inode.c~ramfs-update-dir-mtime-and-ctime 2006-02-24 03:53:46.000000000 -0800 +1
-0@@ -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>
fs/ramfs/inode.c 2006-02-24 03:54:29.000000000 -0800 ramfs_mknod(struct inode *dir, struct de · line 111
Quoted 7 lines
fs/ramfs/inode.c 2006-02-24 03:54:29.000000000 -0800 renamed from fs/ramfs/inode.c~ramfs-update-dir-mtime-and-ctime 2006-02-24 03:53:46.000000000 -0800 +1
-0@@ -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;
Signature · 2 lines
Chuck "Equations are the Devil's sentences." --Stephen Colbert