projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4f7796
)
[PATCH] ramfs: update dir mtime and ctime
author
Andrew Morton
<
[email protected]
>
Fri, 24 Feb 2006 21:04:23 +0000
(13:04 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 24 Feb 2006 22:31:39 +0000
(14:31 -0800)
Phil Marek <
[email protected]
> points out that ramfs forgets to update
a directory's mtime and ctime when it is modified.
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ramfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/ramfs/inode.c
b/fs/ramfs/inode.c
index c66bd5e4c05c3935a2c60e2e53de0b7372b827e4..cde5d48994ae676806034f232775ef662c0cbd15 100644
(file)
--- a/
fs/ramfs/inode.c
+++ b/
fs/ramfs/inode.c
@@
-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 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;
}