Commit b0bc7fc
f2fs: fix a missing discard prefree segments
commit 650d3c4e56e1e92ee6e004648c9deb243e5963e0 upstream.
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>1 parent 7c033b7 commit b0bc7fc
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
| 999 | + | |
1000 | 1000 | | |
1001 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1002 | 1006 | | |
1003 | 1007 | | |
1004 | 1008 | | |
| |||
2343 | 2347 | | |
2344 | 2348 | | |
2345 | 2349 | | |
| 2350 | + | |
| 2351 | + | |
2346 | 2352 | | |
2347 | 2353 | | |
| 2354 | + | |
| 2355 | + | |
2348 | 2356 | | |
2349 | 2357 | | |
2350 | 2358 | | |
| |||
0 commit comments