gc.c (77190e1f313f5ef18a3742aa4c5b790456a5825b) | gc.c (55523519bc7227e651fd4febeb3aafdd22b8af1c) |
---|---|
1/* 2 * fs/f2fs/gc.c 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 --- 34 unchanged lines hidden (view full) --- 43 break; 44 45 if (sbi->sb->s_writers.frozen >= SB_FREEZE_WRITE) { 46 increase_sleep_time(gc_th, &wait_ms); 47 continue; 48 } 49 50#ifdef CONFIG_F2FS_FAULT_INJECTION | 1/* 2 * fs/f2fs/gc.c 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 --- 34 unchanged lines hidden (view full) --- 43 break; 44 45 if (sbi->sb->s_writers.frozen >= SB_FREEZE_WRITE) { 46 increase_sleep_time(gc_th, &wait_ms); 47 continue; 48 } 49 50#ifdef CONFIG_F2FS_FAULT_INJECTION |
51 if (time_to_inject(sbi, FAULT_CHECKPOINT)) | 51 if (time_to_inject(sbi, FAULT_CHECKPOINT)) { 52 f2fs_show_injection_info(FAULT_CHECKPOINT); |
52 f2fs_stop_checkpoint(sbi, false); | 53 f2fs_stop_checkpoint(sbi, false); |
54 } |
|
53#endif 54 55 /* 56 * [GC triggering condition] 57 * 0. GC is not conducted currently. 58 * 1. There are enough dirty segments. 59 * 2. IO subsystem is idle by checking the # of writeback pages. 60 * 3. IO subsystem is idle by checking the # of requests in --- 951 unchanged lines hidden --- | 55#endif 56 57 /* 58 * [GC triggering condition] 59 * 0. GC is not conducted currently. 60 * 1. There are enough dirty segments. 61 * 2. IO subsystem is idle by checking the # of writeback pages. 62 * 3. IO subsystem is idle by checking the # of requests in --- 951 unchanged lines hidden --- |