diff options
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); |