summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-04-05 18:19:48 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-10 19:48:07 -0700
commit22d375dd9cc6ee9ff6382487fdd6ca4759af82a9 (patch)
treee3a57b70d3c5767419e150cedd02469ac10b32a7 /fs/f2fs/f2fs.h
parentc6f82fe90d7458e5fa190a6820bfc24f96b0de4e (diff)
downloadop-kernel-dev-22d375dd9cc6ee9ff6382487fdd6ca4759af82a9.zip
op-kernel-dev-22d375dd9cc6ee9ff6382487fdd6ca4759af82a9.tar.gz
f2fs: split discard_cmd_list
Split discard_cmd_list to discard_{pend,wait}_list, so while sending/waiting discard command, we can avoid traversing unneeded entries in original list. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 7b2b402..55a0506 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -210,7 +210,8 @@ struct discard_cmd_control {
struct task_struct *f2fs_issue_discard; /* discard thread */
struct list_head discard_entry_list; /* 4KB discard entry list */
int nr_discards; /* # of discards in the list */
- struct list_head discard_cmd_list; /* discard cmd list */
+ struct list_head discard_pend_list; /* store pending entries */
+ struct list_head discard_wait_list; /* store on-flushing entries */
wait_queue_head_t discard_wait_queue; /* waiting queue for wake-up */
struct mutex cmd_lock;
int max_discards; /* max. discards to be issued */
OpenPOWER on IntegriCloud