mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
f2fs: introduce time and interval facility
This patch adds time and interval arrays to store some timing variables. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9b72a388f5
commit
6beceb5427
4 changed files with 25 additions and 7 deletions
|
@ -293,7 +293,7 @@ void f2fs_balance_fs_bg(struct f2fs_sb_info *sbi)
|
|||
if (!available_free_memory(sbi, NAT_ENTRIES) ||
|
||||
excess_prefree_segs(sbi) ||
|
||||
!available_free_memory(sbi, INO_ENTRIES) ||
|
||||
jiffies > sbi->cp_expires) {
|
||||
f2fs_time_over(sbi, CP_TIME)) {
|
||||
if (test_opt(sbi, DATA_FLUSH))
|
||||
sync_dirty_inodes(sbi, FILE_INODE);
|
||||
f2fs_sync_fs(sbi->sb, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue