Re: [PATCH RFC v2 for-6.8/block 01/18] block: add some bdev apis

2023-12-12 Thread Yu Kuai
Hi, 在 2023/12/12 21:14, Christoph Hellwig 写道: On Mon, Dec 11, 2023 at 05:52:17PM +0100, Jan Kara wrote: +void bdev_associated_mapping(struct block_device *bdev, +struct address_space *mapping) +{ + mapping->host = bdev->bd_inode; +} Here I'm not sure - is

Re: [PATCH RFC v2 for-6.8/block 01/18] block: add some bdev apis

2023-12-12 Thread Yu Kuai
Hi, 在 2023/12/12 21:16, Christoph Hellwig 写道: +void invalidate_bdev_range(struct block_device *bdev, pgoff_t start, + pgoff_t end) +{ + invalidate_mapping_pages(bdev->bd_inode->i_mapping, start, end); +} +EXPORT_SYMBOL_GPL(invalidate_bdev_range); Can we have

Re: [RFC KERNEL] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Eric Curtin
On Tue, 12 Dec 2023 at 13:06, Christoph Hellwig wrote: > > On Tue, Dec 12, 2023 at 03:50:25PM +0800, Gao Xiang wrote: > > I have no idea how it's faster than the current initramfs or initrd. > > So if it's really useful, maybe some numbers can be posted first > > with the current `memmap` hack

Re: [PATCH RFC v2 for-6.8/block 15/18] buffer: add a new helper to read sb block

2023-12-12 Thread Jan Kara
On Tue 12-12-23 05:25:25, Christoph Hellwig wrote: > On Mon, Dec 11, 2023 at 10:07:53PM +0800, Yu Kuai wrote: > > +static __always_inline int buffer_uptodate_or_error(struct buffer_head *bh) > > +{ > > + /* > > +* If the buffer has the write error flag, data was failed to write > > +*

Re: [PATCH RFC v2 for-6.8/block 15/18] buffer: add a new helper to read sb block

2023-12-12 Thread Christoph Hellwig
On Mon, Dec 11, 2023 at 10:07:53PM +0800, Yu Kuai wrote: > +static __always_inline int buffer_uptodate_or_error(struct buffer_head *bh) > +{ > + /* > + * If the buffer has the write error flag, data was failed to write > + * out in the block. In this case, set buffer uptodate to

Re: [PATCH RFC v2 for-6.8/block 17/18] ext4: remove block_device_ejected()

2023-12-12 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [PATCH RFC v2 for-6.8/block 01/18] block: add some bdev apis

2023-12-12 Thread Christoph Hellwig
> +void invalidate_bdev_range(struct block_device *bdev, pgoff_t start, > +pgoff_t end) > +{ > + invalidate_mapping_pages(bdev->bd_inode->i_mapping, start, end); > +} > +EXPORT_SYMBOL_GPL(invalidate_bdev_range); Can we have kerneldoc comments for the new helpers

Re: [PATCH RFC v2 for-6.8/block 01/18] block: add some bdev apis

2023-12-12 Thread Christoph Hellwig
On Mon, Dec 11, 2023 at 05:52:17PM +0100, Jan Kara wrote: > > +void bdev_associated_mapping(struct block_device *bdev, > > +struct address_space *mapping) > > +{ > > + mapping->host = bdev->bd_inode; > > +} > > Here I'm not sure - is the helper really a win? It seems a

Re: [RFC KERNEL] initoverlayfs - a scalable initial filesystem

2023-12-12 Thread Christoph Hellwig
On Tue, Dec 12, 2023 at 03:50:25PM +0800, Gao Xiang wrote: > I have no idea how it's faster than the current initramfs or initrd. > So if it's really useful, maybe some numbers can be posted first > with the current `memmap` hack and see it's worth going further with > some new infrastructure like

[PATCH v2] erofs-utils: fuse: support FUSE 2/3 multi-thread

2023-12-12 Thread Li Yiyan
Support multi-threading for erofsfuse and adjust the configure.ac to allow users of FUSE 3(> 3.2) to use API version 32, while maintaining compatibility with API version 30 for FUSE 3 (3.0/3.1) and API version 26 for FUSE 2. Signed-off-by: Li Yiyan --- configure.ac | 8 +++- fuse/main.c |

Re: [PATCH v1] erofs-utils: fuse: support FUSE 2/3 multi-threading

2023-12-12 Thread Gao Xiang
On 2023/12/12 15:38, Li Yiyan wrote: From: Li Yiyan Introduce multi-threading support for FUSE and adjust the configure.ac to allow users of FUSE 3(> 3.2) to use API version 32, while maintaining compatibility with API version 30 for FUSE 3 (3.0/3.1) and API version 26 for FUSE 2.

[xiang-erofs:dev] BUILD SUCCESS 6b07eb1629328184dd7d07957c9a9a519a42c5c7

2023-12-12 Thread kernel test robot
gcc arc nsimosci_hs_defconfig gcc arc randconfig-001-20231211 gcc arc randconfig-001-20231212 gcc arc randconfig-002-20231211 gcc arc randconfig-002-20231212 gcc arc