[PATCH] f2fs: avoid to issue redundant discard commands

2017-02-27 Thread Jaegeuk Kim
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 = [010000]

[PATCH] f2fs: avoid to issue redundant discard commands

2017-02-27 Thread Jaegeuk Kim
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 = [010000]