Re: [PATCH] f2fs: truncate preallocated blocks in error case

2018-04-02 Thread Chao Yu
On 2018/3/31 9:57, Jaegeuk Kim wrote: > If write is failed, we must deallocate the blocks that we couldn't write. > > Cc: sta...@vger.kernel.org > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: [PATCH] f2fs: truncate preallocated blocks in error case

2018-04-02 Thread Chao Yu
On 2018/3/31 9:57, Jaegeuk Kim wrote: > If write is failed, we must deallocate the blocks that we couldn't write. > > Cc: sta...@vger.kernel.org > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

[PATCH] f2fs: truncate preallocated blocks in error case

2018-03-30 Thread Jaegeuk Kim
If write is failed, we must deallocate the blocks that we couldn't write. Cc: sta...@vger.kernel.org Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 9 + 1 file changed, 9 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 8068b015ece5..f18f62dd60a3

[PATCH] f2fs: truncate preallocated blocks in error case

2018-03-30 Thread Jaegeuk Kim
If write is failed, we must deallocate the blocks that we couldn't write. Cc: sta...@vger.kernel.org Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 9 + 1 file changed, 9 insertions(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 8068b015ece5..f18f62dd60a3 100644 ---