Re: [f2fs-dev] [PATCH] f2fs: remove useless truncate in f2fs_collapse_range()

2020-06-15 Thread Wei Fang
On 2020/6/15 9:42, Chao Yu wrote: > Hi Wei Fang, > > On 2020/6/13 12:25, Wei Fang wrote: >> Since offset < new_size, no need to do truncate_pagecache() again >> with new_size. >> >> Signed-off-by: Wei Fang >> --- >> fs/f2fs/file.c | 5 ++--- >> 1 file changed, 2 insertions(+), 3 deletions(-) >>

Re: [f2fs-dev] [PATCH] f2fs: remove useless truncate in f2fs_collapse_range()

2020-06-14 Thread Chao Yu
Hi Wei Fang, On 2020/6/13 12:25, Wei Fang wrote: > Since offset < new_size, no need to do truncate_pagecache() again > with new_size. > > Signed-off-by: Wei Fang > --- > fs/f2fs/file.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c

[f2fs-dev] [PATCH] f2fs: remove useless truncate in f2fs_collapse_range()

2020-06-12 Thread Wei Fang
Since offset < new_size, no need to do truncate_pagecache() again with new_size. Signed-off-by: Wei Fang --- fs/f2fs/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 3268f8dd59bb..43544817238b 100644 --- a/fs/f2fs/file.c +++ b/