]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add a punch discard command function
authorYunlei He <heyunlei@huawei.com>
Thu, 2 Mar 2017 02:36:20 +0000 (10:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:23 +0000 (22:34 -0400)
commit11860092f6d5cb1598f51bdca9c7cbb77afa8283
tree0ecbe28982f52c008e4adb9e4612f6c422e7171d
parentfab87007c92770ae049b569f1cf26d314be0312f
f2fs: add a punch discard command function

This patch add a function to punch discard command if one segment
reuse before discard. Split this segment from multi-segments discard
range, and discard the left bigger range.

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