segment.c (22ad0b6ab46683975c6da032f1c2593066c7b3bd) segment.c (55523519bc7227e651fd4febeb3aafdd22b8af1c)
1/*
2 * fs/f2fs/segment.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

--- 338 unchanged lines hidden (view full) ---

347
348/*
349 * This function balances dirty node and dentry pages.
350 * In addition, it controls garbage collection.
351 */
352void f2fs_balance_fs(struct f2fs_sb_info *sbi, bool need)
353{
354#ifdef CONFIG_F2FS_FAULT_INJECTION
1/*
2 * fs/f2fs/segment.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

--- 338 unchanged lines hidden (view full) ---

347
348/*
349 * This function balances dirty node and dentry pages.
350 * In addition, it controls garbage collection.
351 */
352void f2fs_balance_fs(struct f2fs_sb_info *sbi, bool need)
353{
354#ifdef CONFIG_F2FS_FAULT_INJECTION
355 if (time_to_inject(sbi, FAULT_CHECKPOINT))
355 if (time_to_inject(sbi, FAULT_CHECKPOINT)) {
356 f2fs_show_injection_info(FAULT_CHECKPOINT);
356 f2fs_stop_checkpoint(sbi, false);
357 f2fs_stop_checkpoint(sbi, false);
358 }
357#endif
358
359 if (!need)
360 return;
361
362 /* balance_fs_bg is able to be pending */
363 if (excess_cached_nats(sbi))
364 f2fs_balance_fs_bg(sbi);

--- 2654 unchanged lines hidden ---
359#endif
360
361 if (!need)
362 return;
363
364 /* balance_fs_bg is able to be pending */
365 if (excess_cached_nats(sbi))
366 f2fs_balance_fs_bg(sbi);

--- 2654 unchanged lines hidden ---