diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-08 16:57:48 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:49 +0200 |
| commit | 25b03d61df0c7821c819ec97a915d9c542241b11 (patch) | |
| tree | 44f2f671e484d8004fec7e95e9f0c8a7694e9553 /fs/f2fs/gc.h | |
| parent | 8ff78b1f5fac047c714c8d0c5a04c4633e8de9d4 (diff) | |
f2fs: detect idle time depending on user behavior
This patch adds last time that user requested filesystem operations.
This information is used to detect whether system is idle or not later.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Conflicts:
Documentation/ABI/testing/sysfs-fs-f2fs
Diffstat (limited to 'fs/f2fs/gc.h')
| -rw-r--r-- | fs/f2fs/gc.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/f2fs/gc.h b/fs/f2fs/gc.h index b4a65be9f..a993967dc 100644 --- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h @@ -100,11 +100,3 @@ static inline bool has_enough_invalid_blocks(struct f2fs_sb_info *sbi) return true; return false; } - -static inline int is_idle(struct f2fs_sb_info *sbi) -{ - struct block_device *bdev = sbi->sb->s_bdev; - struct request_queue *q = bdev_get_queue(bdev); - struct request_list *rl = &q->root_rl; - return !(rl->count[BLK_RW_SYNC]) && !(rl->count[BLK_RW_ASYNC]); -} |
