gc.h (cf40a76e7d5874bb25f4404eecc58a2e033af885) | gc.h (1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a) |
---|---|
1/* 2 * fs/f2fs/gc.h 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 6 unchanged lines hidden (view full) --- 15 */ 16#define DEF_GC_THREAD_URGENT_SLEEP_TIME 500 /* 500 ms */ 17#define DEF_GC_THREAD_MIN_SLEEP_TIME 30000 /* milliseconds */ 18#define DEF_GC_THREAD_MAX_SLEEP_TIME 60000 19#define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */ 20#define LIMIT_INVALID_BLOCK 40 /* percentage over total user space */ 21#define LIMIT_FREE_BLOCK 40 /* percentage over invalid + free space */ 22 | 1/* 2 * fs/f2fs/gc.h 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 6 unchanged lines hidden (view full) --- 15 */ 16#define DEF_GC_THREAD_URGENT_SLEEP_TIME 500 /* 500 ms */ 17#define DEF_GC_THREAD_MIN_SLEEP_TIME 30000 /* milliseconds */ 18#define DEF_GC_THREAD_MAX_SLEEP_TIME 60000 19#define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */ 20#define LIMIT_INVALID_BLOCK 40 /* percentage over total user space */ 21#define LIMIT_FREE_BLOCK 40 /* percentage over invalid + free space */ 22 |
23#define DEF_GC_FAILED_PINNED_FILES 2048 24 |
|
23/* Search max. number of dirty segments to select a victim segment */ 24#define DEF_MAX_VICTIM_SEARCH 4096 /* covers 8GB */ 25 26struct f2fs_gc_kthread { 27 struct task_struct *f2fs_gc_task; 28 wait_queue_head_t gc_wait_queue_head; 29 30 /* for gc sleep time */ --- 83 unchanged lines hidden --- | 25/* Search max. number of dirty segments to select a victim segment */ 26#define DEF_MAX_VICTIM_SEARCH 4096 /* covers 8GB */ 27 28struct f2fs_gc_kthread { 29 struct task_struct *f2fs_gc_task; 30 wait_queue_head_t gc_wait_queue_head; 31 32 /* for gc sleep time */ --- 83 unchanged lines hidden --- |