diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-27 11:57:11 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-02-27 13:44:08 -0800 |
commit | 8b107f5b97772c7c0c218302e9a4d15b4edf50b4 (patch) | |
tree | 24e6488c95bd4af2ced1654de8f889c148ad1271 /tools/pcmcia | |
parent | 37e79cd31c2c4dcd7e149958ca3cae9d180c63c7 (diff) | |
download | linux-8b107f5b97772c7c0c218302e9a4d15b4edf50b4.tar.bz2 |
f2fs: avoid to issue redundant discard commands
If segs_per_sec is over 1 like under SMR, previously f2fs issues discard
commands redundantly on the same section, since we didn't move end position
for the previous discard command.
E.g.,
start end
| |
prefree_bitmap = [01111100111100]
And, after issue discard for this section,
end start
| |
prefree_bitmap = [01111100111100]
Select this section again by searching from (end + 1),
start end
| |
prefree_bitmap = [01111100111100]
Fixes: 36abef4e796d38 ("f2fs: introduce mode=lfs mount option")
Cc: <stable@vger.kernel.org>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/pcmcia')
0 files changed, 0 insertions, 0 deletions