]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix a missing discard prefree segments
authorYunlei He <heyunlei@huawei.com>
Thu, 22 Dec 2016 03:46:24 +0000 (11:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:01 +0000 (12:46 +0900)
commit28f2eb50794164e3b0fafe0a9ca3f8e6418bcd9d
treea023ff72d6daafff77cf0086abeb37f8e8d4a991
parentb676489eb6802275d10a67c0f9f1d02d88e44890
f2fs: fix a missing discard prefree segments

If userspace issue a fstrim with a range not involve prefree segments,
it will reuse these segments without discard. This patch fix it.

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