diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-08-22 21:15:43 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-08-29 10:05:33 -0700 |
commit | 01983c715ad0e78842a885f361ad927a3a985994 (patch) | |
tree | dd8995b6626b9b423bcf2e7170f85d55879e65f7 /fs/f2fs/segment.c | |
parent | adb6dc197187e2a5f5a7bed01e722f46a58676af (diff) | |
download | linux-01983c715ad0e78842a885f361ad927a3a985994.tar.bz2 |
f2fs: wake up discard_thread iff there is a candidate
This patch fixes to avoid needless wake ups.
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 8306beace7cb..8375257b6b26 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1494,8 +1494,7 @@ skip: kmem_cache_free(discard_entry_slab, entry); } - dcc->discard_wake = 1; - wake_up_interruptible_all(&dcc->discard_wait_queue); + wake_up_discard_thread(sbi, false); } static int create_discard_cmd_control(struct f2fs_sb_info *sbi) |