f2fs: avoid very large discard command
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 03:10:35 +0000 (19:10 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 17:59:20 +0000 (09:59 -0800)
commitad4d307fce0909a5f70635826f779321ab95b469
tree1579e31f246d15a1e9142239eb5ffc8a28ec69df
parent70d625cbdbbb99e38953b8b7ac792a6471e68efb
f2fs: avoid very large discard command

This patch adds MAX_DISCARD_BLOCKS() to avoid issuing too much large single
discard command.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/segment.c