Re: [f2fs-dev] [PATCH v8 17/25] btrfs: Convert from readpages to readahead

2020-02-28 Thread David Sterba
On Wed, Feb 26, 2020 at 09:05:07AM -0800, Christoph Hellwig wrote: > On Tue, Feb 25, 2020 at 01:48:30PM -0800, Matthew Wilcox wrote: > > From: "Matthew Wilcox (Oracle)" > > > > Implement the new readahead method in btrfs. Add a readahead_page_batch() > > to optimise fetching a batch of pages at

[f2fs-dev] [PATCH] f2fs: compress: support zstd compress algorithm

2020-02-28 Thread Chao Yu
Add zstd compress algorithm support, use "compress_algorithm=zstd" mountoption to enable it. Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.txt | 4 +- fs/f2fs/Kconfig| 9 ++ fs/f2fs/compress.c | 151 + fs/f2fs/f2fs.h

[f2fs-dev] [PATCH] f2fs: fix to avoid use-after-free in f2fs_write_multi_pages()

2020-02-28 Thread Chao Yu
In compress cluster, if physical block number is less than logic page number, race condition will cause use-after-free issue as described below: - f2fs_write_compressed_pages - fio.page = cic->rpages[0]; - f2fs_outplace_write_data - f2fs_compress_write_end

Re: [f2fs-dev] [PATCH 1/2] f2fs: Fix mount failure due to SPO after a successful online resize FS

2020-02-28 Thread Chao Yu
Hi Sahitya, Good catch. On 2020/2/27 18:39, Sahitya Tummala wrote: > Even though online resize is successfully done, a SPO immediately > after resize, still causes below error in the next mount. > > [ 11.294650] F2FS-fs (sda8): Wrong user_block_count: 2233856 > [ 11.300272] F2FS-fs (sda8): F

Re: [f2fs-dev] [PATCH v2] f2fs: introduce F2FS_IOC_RELEASE_COMPRESS_BLOCKS

2020-02-28 Thread Chao Yu
On 2020/2/28 2:30, Jaegeuk Kim wrote: > On 02/27, Chao Yu wrote: >> There are still reserved blocks on compressed inode, this patch >> introduce a new ioctl to help release reserved blocks back to >> filesystem, so that userspace can reuse those freed space. > > Hmm, once we release the blocks, wh