/[linux-patches]/genpatches-2.6/trunk/2.6.14/1456_15.5_ramfs-dir-mtime-ctime.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1456_15.5_ramfs-dir-mtime-ctime.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 1057 byte(s)
2.6.14-11, rebase against local tree
1 From: Andrew Morton <akpm@osdl.org>
2 Date: Fri, 24 Feb 2006 21:04:23 +0000 (-0800)
3 Subject: [PATCH] ramfs: update dir mtime and ctime
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=b9c53139e460fa93b7b20928f8b49a3cb2432b69
5
6 [PATCH] ramfs: update dir mtime and ctime
7
8 Phil Marek <philipp.marek@bmlv.gv.at> points out that ramfs forgets to update
9 a directory's mtime and ctime when it is modified.
10
11 Cc: <stable@kernel.org>
12 Signed-off-by: Andrew Morton <akpm@osdl.org>
13 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
14 ---
15
16 --- a/fs/ramfs/inode.c
17 +++ b/fs/ramfs/inode.c
18 @@ -27,6 +27,7 @@
19 #include <linux/fs.h>
20 #include <linux/pagemap.h>
21 #include <linux/highmem.h>
22 +#include <linux/time.h>
23 #include <linux/init.h>
24 #include <linux/string.h>
25 #include <linux/smp_lock.h>
26 @@ -105,6 +106,7 @@ ramfs_mknod(struct inode *dir, struct de
27 d_instantiate(dentry, inode);
28 dget(dentry); /* Extra count - pin the dentry in core */
29 error = 0;
30 + dir->i_mtime = dir->i_ctime = CURRENT_TIME;
31 }
32 return error;
33 }

  ViewVC Help
Powered by ViewVC 1.1.20