linux-moblin: Add super readahead ext3 specific patch
We need this patch for sreadahead to generate the to be read file list.
This commit is contained in:
parent
b249501844
commit
7b5d03d08e
65
meta-moblin/packages/linux/linux-moblin-2.6.27/0043-superreadahead-patch.patch
vendored
Normal file
65
meta-moblin/packages/linux/linux-moblin-2.6.27/0043-superreadahead-patch.patch
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
From: Arjan van de Ven <arjan@linux.intel.com>
|
||||
Date: Sun, 21 Sep 2008 11:58:27 -0700
|
||||
Subject: [PATCH] superreadahead patch
|
||||
|
||||
---
|
||||
fs/ext3/ioctl.c | 3 +++
|
||||
fs/ext3/super.c | 1 +
|
||||
include/linux/ext3_fs.h | 1 +
|
||||
include/linux/fs.h | 2 ++
|
||||
4 files changed, 7 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c
|
||||
index 0d0c701..7e62d7d 100644
|
||||
--- a/fs/ext3/ioctl.c
|
||||
+++ b/fs/ext3/ioctl.c
|
||||
@@ -286,6 +286,9 @@ group_add_out:
|
||||
mnt_drop_write(filp->f_path.mnt);
|
||||
return err;
|
||||
}
|
||||
+ case EXT3_IOC_INODE_JIFFIES: {
|
||||
+ return inode->created_when;
|
||||
+ }
|
||||
|
||||
|
||||
default:
|
||||
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
|
||||
index 2845425..6a896a4 100644
|
||||
--- a/fs/ext3/super.c
|
||||
+++ b/fs/ext3/super.c
|
||||
@@ -456,6 +456,7 @@ static struct inode *ext3_alloc_inode(struct super_block *sb)
|
||||
#endif
|
||||
ei->i_block_alloc_info = NULL;
|
||||
ei->vfs_inode.i_version = 1;
|
||||
+ ei->vfs_inode.created_when = jiffies;
|
||||
return &ei->vfs_inode;
|
||||
}
|
||||
|
||||
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h
|
||||
index 36c5403..b409fa7 100644
|
||||
--- a/include/linux/ext3_fs.h
|
||||
+++ b/include/linux/ext3_fs.h
|
||||
@@ -225,6 +225,7 @@ struct ext3_new_group_data {
|
||||
#endif
|
||||
#define EXT3_IOC_GETRSVSZ _IOR('f', 5, long)
|
||||
#define EXT3_IOC_SETRSVSZ _IOW('f', 6, long)
|
||||
+#define EXT3_IOC_INODE_JIFFIES _IOR('f', 19, long)
|
||||
|
||||
/*
|
||||
* ioctl commands in 32 bit emulation
|
||||
diff --git a/include/linux/fs.h b/include/linux/fs.h
|
||||
index c6455da..4ac846d 100644
|
||||
--- a/include/linux/fs.h
|
||||
+++ b/include/linux/fs.h
|
||||
@@ -655,6 +655,8 @@ struct inode {
|
||||
void *i_security;
|
||||
#endif
|
||||
void *i_private; /* fs or device private pointer */
|
||||
+
|
||||
+ unsigned long created_when; /* jiffies of creation time */
|
||||
};
|
||||
|
||||
/*
|
||||
--
|
||||
1.5.5.1
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
require linux-moblin.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
PE = "1"
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
@ -49,6 +49,7 @@ SRC_URI = "${KERNELORG_MIRROR}pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2 \
|
|||
file://0040-fastboot-fix-issues-and-improve-output-of-bootgraph.patch;patch=1 \
|
||||
file://0041-r8169-8101e.patch;patch=1 \
|
||||
file://0042-intelfb-945gme.patch;patch=1 \
|
||||
file://0043-superreadahead-patch.patch;patch=1 \
|
||||
file://defconfig-netbook"
|
||||
|
||||
S = "${WORKDIR}/linux-2.6.27"
|
||||
|
|
Loading…
Reference in New Issue