gc.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) | gc.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 31 unchanged lines hidden (view full) --- 40 * GC tries to optimize the way it fit nodes to available space, and it sorts 41 * nodes a little. The below constants are watermarks which define "large", 42 * "medium", and "small" nodes. 43 */ 44#define MEDIUM_NODE_WM (UBIFS_BLOCK_SIZE / 4) 45#define SMALL_NODE_WM UBIFS_MAX_DENT_NODE_SZ 46 47/* | 1/* 2 * This file is part of UBIFS. 3 * 4 * Copyright (C) 2006-2008 Nokia Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 as published by 8 * the Free Software Foundation. --- 31 unchanged lines hidden (view full) --- 40 * GC tries to optimize the way it fit nodes to available space, and it sorts 41 * nodes a little. The below constants are watermarks which define "large", 42 * "medium", and "small" nodes. 43 */ 44#define MEDIUM_NODE_WM (UBIFS_BLOCK_SIZE / 4) 45#define SMALL_NODE_WM UBIFS_MAX_DENT_NODE_SZ 46 47/* |
48 * GC may need to move more then one LEB to make progress. The below constants | 48 * GC may need to move more than one LEB to make progress. The below constants |
49 * define "soft" and "hard" limits on the number of LEBs the garbage collector 50 * may move. 51 */ 52#define SOFT_LEBS_LIMIT 4 53#define HARD_LEBS_LIMIT 32 54 55/** 56 * switch_gc_head - switch the garbage collection journal head. --- 793 unchanged lines hidden --- | 49 * define "soft" and "hard" limits on the number of LEBs the garbage collector 50 * may move. 51 */ 52#define SOFT_LEBS_LIMIT 4 53#define HARD_LEBS_LIMIT 32 54 55/** 56 * switch_gc_head - switch the garbage collection journal head. --- 793 unchanged lines hidden --- |