diff options
author | Peter Staubach <staubach@redhat.com> | 2006-03-06 18:42:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-06 21:40:45 -0500 |
commit | ecbd3a632c8198744655b769c5c2b5a1455c1fba (patch) | |
tree | 95e68beb43315ecdcdd1a57393ef76f2779f3ba2 /fs/ramfs/inode.c | |
parent | e8c3b5a6faf50b426cd8d06912a52e24837a73ad (diff) |
[PATCH] ramfs needs to update directory m/ctime on symlink
ramfs neglects to update the directory mtime and ctime fields when creating
a new symbolic link. Ramfs was modified in 2.6.15 to update these fields
when other types of entries are created. The symlink support is separate
from that other support, so that change did not cover quite all of the
possibilities.
All of the directory content manipulation entry points now seem to be
covered with respect to these time field updates.
Signed-off-by: Peter Staubach <staubach@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ramfs/inode.c')
-rw-r--r-- | fs/ramfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index cde5d48994ae..14bd2246fb6d 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -137,6 +137,7 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * | |||
137 | inode->i_gid = dir->i_gid; | 137 | inode->i_gid = dir->i_gid; |
138 | d_instantiate(dentry, inode); | 138 | d_instantiate(dentry, inode); |
139 | dget(dentry); | 139 | dget(dentry); |
140 | dir->i_mtime = dir->i_ctime = CURRENT_TIME; | ||
140 | } else | 141 | } else |
141 | iput(inode); | 142 | iput(inode); |
142 | } | 143 | } |