diff options
Diffstat (limited to 'meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0004-superreadahead-patch.patch')
-rw-r--r-- | meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0004-superreadahead-patch.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0004-superreadahead-patch.patch b/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0004-superreadahead-patch.patch new file mode 100644 index 0000000000..e4e2001104 --- /dev/null +++ b/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0004-superreadahead-patch.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From be9df3282d24a7326bba2eea986c79d822f0e998 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Sun, 21 Sep 2008 11:58:27 -0700 | ||
4 | Subject: [PATCH] superreadahead patch | ||
5 | |||
6 | --- | ||
7 | fs/ext3/ioctl.c | 3 +++ | ||
8 | fs/ext3/super.c | 1 + | ||
9 | include/linux/ext3_fs.h | 1 + | ||
10 | include/linux/fs.h | 2 ++ | ||
11 | 4 files changed, 7 insertions(+), 0 deletions(-) | ||
12 | |||
13 | diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c | ||
14 | index b7394d0..c2e7f23 100644 | ||
15 | --- a/fs/ext3/ioctl.c | ||
16 | +++ b/fs/ext3/ioctl.c | ||
17 | @@ -290,6 +290,9 @@ group_add_out: | ||
18 | mnt_drop_write(filp->f_path.mnt); | ||
19 | return err; | ||
20 | } | ||
21 | + case EXT3_IOC_INODE_JIFFIES: { | ||
22 | + return inode->created_when; | ||
23 | + } | ||
24 | |||
25 | |||
26 | default: | ||
27 | diff --git a/fs/ext3/super.c b/fs/ext3/super.c | ||
28 | index f6c94f2..268dd1d 100644 | ||
29 | --- a/fs/ext3/super.c | ||
30 | +++ b/fs/ext3/super.c | ||
31 | @@ -461,6 +461,7 @@ static struct inode *ext3_alloc_inode(struct super_block *sb) | ||
32 | #endif | ||
33 | ei->i_block_alloc_info = NULL; | ||
34 | ei->vfs_inode.i_version = 1; | ||
35 | + ei->vfs_inode.created_when = jiffies; | ||
36 | return &ei->vfs_inode; | ||
37 | } | ||
38 | |||
39 | diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h | ||
40 | index d14f029..fff5510 100644 | ||
41 | --- a/include/linux/ext3_fs.h | ||
42 | +++ b/include/linux/ext3_fs.h | ||
43 | @@ -225,6 +225,7 @@ struct ext3_new_group_data { | ||
44 | #endif | ||
45 | #define EXT3_IOC_GETRSVSZ _IOR('f', 5, long) | ||
46 | #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) | ||
47 | +#define EXT3_IOC_INODE_JIFFIES _IOR('f', 19, long) | ||
48 | |||
49 | /* | ||
50 | * ioctl commands in 32 bit emulation | ||
51 | diff --git a/include/linux/fs.h b/include/linux/fs.h | ||
52 | index 4a853ef..c346136 100644 | ||
53 | --- a/include/linux/fs.h | ||
54 | +++ b/include/linux/fs.h | ||
55 | @@ -685,6 +685,8 @@ struct inode { | ||
56 | void *i_security; | ||
57 | #endif | ||
58 | void *i_private; /* fs or device private pointer */ | ||
59 | + | ||
60 | + unsigned long created_when; /* jiffies of creation time */ | ||
61 | }; | ||
62 | |||
63 | /* | ||
64 | -- | ||
65 | 1.5.5.1 | ||
66 | |||