diff options
author | Charles Manning <cdhmanning@gmail.com> | 2011-04-28 15:57:52 +1200 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2011-04-28 15:57:52 +1200 |
commit | c4e8d85455d0acf2a3da23c20cd2db66d30caf1b (patch) | |
tree | abfa55c23a80b73f76a001fd7d32a028983ee9ce /yaffs_vfs_multi.c | |
parent | 7715144e7d55b2854f907001c432348e4caa5954 (diff) | |
parent | 447f47497bcd9acf7e59823a4e43888356200dc9 (diff) |
Merge branch 'block-summary'
Conflicts:
yaffs_vfs_multi.c
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_vfs_multi.c')
-rw-r--r-- | yaffs_vfs_multi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c index 7e28c40..cf9df09 100644 --- a/yaffs_vfs_multi.c +++ b/yaffs_vfs_multi.c @@ -2524,6 +2524,7 @@ struct yaffs_options { int lazy_loading_overridden; int empty_lost_and_found; int empty_lost_and_found_overridden; + int disable_summary; }; #define MAX_OPT_LEN 30 @@ -2565,6 +2566,8 @@ static int yaffs_parse_options(struct yaffs_options *options, } else if (!strcmp(cur_opt, "lazy-loading-on")) { options->lazy_loading_enabled = 1; options->lazy_loading_overridden = 1; + } else if (!strcmp(cur_opt, "disable_summary")) { + options->disable_summary = 1; } else if (!strcmp(cur_opt, "empty-lost-and-found-off")) { options->empty_lost_and_found = 0; options->empty_lost_and_found_overridden = 1; @@ -2837,6 +2840,7 @@ static struct super_block *yaffs_internal_read_super(int yaffs_version, param->empty_lost_n_found = 1; param->refresh_period = 500; + param->disable_summary = options.disable_summary; if (options.empty_lost_and_found_overridden) param->empty_lost_n_found = options.empty_lost_and_found; @@ -3124,6 +3128,8 @@ static char *yaffs_dump_dev_part1(char *buf, struct yaffs_dev *dev) dev->n_unlinked_files); buf += sprintf(buf, "refresh_count........ %u\n", dev->refresh_count); buf += sprintf(buf, "n_bg_deletions....... %u\n", dev->n_bg_deletions); + buf += sprintf(buf, "tags_used............ %u\n", dev->tags_used); + buf += sprintf(buf, "summary_used......... %u\n", dev->summary_used); return buf; } |