diff options
| author | [email protected] <[email protected]> | 2012-02-16 18:12:45 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-02-16 18:12:45 +0000 |
| commit | 7114014429e6c097cb01e740f401ce2a1da738ca (patch) | |
| tree | f3d08008cedafabb45ff73ffb9513778b7413ebf | |
| parent | be7bd6b5d7f0100cb75211568a21442ff79c2f3f (diff) | |
add a option in jffs2_config.h(whose value may be important to reading/writing speed)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1951 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | components/dfs/filesystems/jffs2/jffs2_config.h | 5 | ||||
| -rw-r--r-- | components/dfs/filesystems/jffs2/kernel/asm/page.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/components/dfs/filesystems/jffs2/jffs2_config.h b/components/dfs/filesystems/jffs2/jffs2_config.h index f07d7760f8..ad2eb879dd 100644 --- a/components/dfs/filesystems/jffs2/jffs2_config.h +++ b/components/dfs/filesystems/jffs2/jffs2_config.h @@ -7,11 +7,14 @@ #define DEVICE_PART_MAX 1 /* the max partions on a nand deivce*/ +/* memory page size in kernel/asm/page.h, it is correspond with flash read/write + * option, so this size has a great impact on reading/writing speed */ +#define CONFIG_JFFS2_PAGE_SHIFT 12 /* (1<<12) 4096bytes*/ /* jffs2 support relative dir, command "ls" will get * +-------------------------------+ * | finsh>>ls("/") | - * | Directory /: | + * | Directory /: | * | . <DIR> | * | .. <DIR> | * | dir1 <DIR> | diff --git a/components/dfs/filesystems/jffs2/kernel/asm/page.h b/components/dfs/filesystems/jffs2/kernel/asm/page.h index a729cd707f..af3081164f 100644 --- a/components/dfs/filesystems/jffs2/kernel/asm/page.h +++ b/components/dfs/filesystems/jffs2/kernel/asm/page.h @@ -2,7 +2,8 @@ #define __ASM_PAGE_H__ //#include <pkgconf/linux_compat.h> //mod by prife -#define PAGE_SHIFT 12 // add by prife 4K +#include "jffs2_config.h" +#define PAGE_SHIFT CONFIG_JFFS2_PAGE_SHIFT /* These aren't used by much yet. If that changes, you might want to make them actually correct :) */ #define PAGE_SIZE (0x1 << PAGE_SHIFT) |
