projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up code formatting
[yaffs2.git]
/
yaffs_fs.c
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index a51dc20de633f900f25cf4ba5c8d993142956012..93236e403f08030074640f810fa3ec1cb827e422 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-32,7
+32,7
@@
*/
const char *yaffs_fs_c_version =
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.8
4 2009-10-14 00:01:5
6 charles Exp $";
+ "$Id: yaffs_fs.c,v 1.8
5 2009-10-15 00:45:4
6 charles Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/version.h>
extern const char *yaffs_guts_c_version;
#include <linux/version.h>
@@
-1814,6
+1814,8
@@
typedef struct {
int no_cache;
int tags_ecc_on;
int tags_ecc_overridden;
int no_cache;
int tags_ecc_on;
int tags_ecc_overridden;
+ int lazy_load_enabled;
+ int lazy_load_overridden;
} yaffs_options;
#define MAX_OPT_LEN 20
} yaffs_options;
#define MAX_OPT_LEN 20
@@
-1848,6
+1850,12
@@
static int yaffs_parse_options(yaffs_options *options, const char *options_str)
} else if (!strcmp(cur_opt, "tags-ecc-on")){
options->tags_ecc_on = 1;
options->tags_ecc_overridden = 1;
} else if (!strcmp(cur_opt, "tags-ecc-on")){
options->tags_ecc_on = 1;
options->tags_ecc_overridden = 1;
+ } else if (!strcmp(cur_opt, "lazy-load-off")){
+ options->lazy_load_enabled = 0;
+ options->lazy_load_overridden=1;
+ } else if (!strcmp(cur_opt, "lazy-load-on")){
+ options->lazy_load_enabled = 1;
+ options->lazy_load_overridden = 1;
} else if (!strcmp(cur_opt, "no-cache"))
options->no_cache = 1;
else if (!strcmp(cur_opt, "no-checkpoint-read"))
} else if (!strcmp(cur_opt, "no-cache"))
options->no_cache = 1;
else if (!strcmp(cur_opt, "no-checkpoint-read"))
@@
-2064,6
+2072,12
@@
static struct super_block *yaffs_internal_read_super(int yaffsVersion,
dev->nShortOpCaches = (options.no_cache) ? 0 : 10;
dev->inbandTags = options.inband_tags;
dev->nShortOpCaches = (options.no_cache) ? 0 : 10;
dev->inbandTags = options.inband_tags;
+#ifdef CONFIG_YAFFS_DISABLE_LAZY_LOAD
+ dev->disableLazyLoad = 1;
+#endif
+ if(options.lazy_load_overridden)
+ dev->disableLazyLoad = !options.lazy_load_enabled;
+
#ifdef CONFIG_YAFFS_DISABLE_TAGS_ECC
dev->noTagsECC = 1;
#endif
#ifdef CONFIG_YAFFS_DISABLE_TAGS_ECC
dev->noTagsECC = 1;
#endif