Re: [PATCH] f2fs: do not use discard_map for non-discard case

2016-08-05 Thread Jaegeuk Kim
On Fri, Aug 05, 2016 at 05:38:25PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > On 2016/8/5 3:04, Jaegeuk Kim wrote: > > We don't need to keep discard_map, if f2fs has no discard mount option. > > In trim_fs path, we will still use discard_map though, right? Oops, right. :) I'll fix that. Thanks, >

Re: [PATCH] f2fs: do not use discard_map for non-discard case

2016-08-05 Thread Chao Yu
Hi Jaegeuk, On 2016/8/5 3:04, Jaegeuk Kim wrote: > We don't need to keep discard_map, if f2fs has no discard mount option. In trim_fs path, we will still use discard_map though, right? Thanks, > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h| 2 ++ > fs/f2fs/segment.c | 87 > +

[PATCH] f2fs: do not use discard_map for non-discard case

2016-08-04 Thread Jaegeuk Kim
We don't need to keep discard_map, if f2fs has no discard mount option. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 2 ++ fs/f2fs/segment.c | 87 ++- fs/f2fs/super.c | 10 +++ 3 files changed, 86 insertions(+), 13 deletions(-) di