f2fs: avoid mismatching block range for discard
authorYunlei He <heyunlei@huawei.com>
Thu, 7 Jul 2016 04:13:33 +0000 (12:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 8 Jul 2016 17:33:33 +0000 (10:33 -0700)
commitc7b41e161368388487238d71986a65290f83d74a
treed5a64c78d1a117fc4dae285df11a77735d118018
parent3e6d0b4d9c1cd3bbe5bacbf9d6de682be2bce8e4
f2fs: avoid mismatching block range for discard

This patch skip discard block range smaller than trim_minlen,
and can not be merged by neighbour

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