f2fs: split discard_cmd_list
authorChao Yu <yuchao0@huawei.com>
Wed, 5 Apr 2017 10:19:48 +0000 (18:19 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Apr 2017 02:48:07 +0000 (19:48 -0700)
commit22d375dd9cc6ee9ff6382487fdd6ca4759af82a9
treee3a57b70d3c5767419e150cedd02469ac10b32a7
parentc6f82fe90d7458e5fa190a6820bfc24f96b0de4e
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>
fs/f2fs/f2fs.h
fs/f2fs/segment.c