diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-19 12:57:27 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-20 03:10:47 -0500 |
commit | 7078202e55b565582fcbd831a8dd3069bdc72610 (patch) | |
tree | 0f8cabaa23a05210cc1b95a97d7cab490f38ebca /fs/ubifs/super.c | |
parent | a50412e3f8ce95d7ed558370d7dde5171fd04283 (diff) |
UBIFS: document dark_wm and dead_wm better
Just add more commentaries. Also some commentary fixes for
lprops flags.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 53811e567a69..da99da098efd 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -573,15 +573,8 @@ static int init_constants_early(struct ubifs_info *c) | |||
573 | c->ranges[UBIFS_IDX_NODE].max_len = INT_MAX; | 573 | c->ranges[UBIFS_IDX_NODE].max_len = INT_MAX; |
574 | 574 | ||
575 | /* | 575 | /* |
576 | * Initialize dead and dark LEB space watermarks. | 576 | * Initialize dead and dark LEB space watermarks. See gc.c for comments |
577 | * | 577 | * about these values. |
578 | * Dead space is the space which cannot be used. Its watermark is | ||
579 | * equivalent to min. I/O unit or minimum node size if it is greater | ||
580 | * then min. I/O unit. | ||
581 | * | ||
582 | * Dark space is the space which might be used, or might not, depending | ||
583 | * on which node should be written to the LEB. Its watermark is | ||
584 | * equivalent to maximum UBIFS node size. | ||
585 | */ | 578 | */ |
586 | c->dead_wm = ALIGN(MIN_WRITE_SZ, c->min_io_size); | 579 | c->dead_wm = ALIGN(MIN_WRITE_SZ, c->min_io_size); |
587 | c->dark_wm = ALIGN(UBIFS_MAX_NODE_SZ, c->min_io_size); | 580 | c->dark_wm = ALIGN(UBIFS_MAX_NODE_SZ, c->min_io_size); |