[PATCH 07/19] block: simplify bio_map_kern

2025-05-07 Thread Christoph Hellwig
Rewrite bio_map_kern using the new bio_add_* helpers and drop the kerneldoc comment that is superfluous for an internal helper. Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal Reviewed-by: Johannes Thumshirn --- block/blk-map.c | 56

Re: [PATCH 07/19] block: simplify bio_map_kern

2025-05-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH 07/19] block: simplify bio_map_kern

2025-05-02 Thread Christoph Hellwig
On Fri, May 02, 2025 at 03:56:08AM +0900, Damien Le Moal wrote: > > - unsigned long kaddr = (unsigned long)data; > > - unsigned long end = (kaddr + len + PAGE_SIZE - 1) >> PAGE_SHIFT; > > - unsigned long start = kaddr >> PAGE_SHIFT; > > - const int nr_pages = end - start; > > - bool is_vm

Re: [PATCH 07/19] block: simplify bio_map_kern

2025-05-01 Thread Damien Le Moal
On 5/1/25 06:21, Christoph Hellwig wrote: > Rewrite bio_map_kern using the new bio_add_* helpers and drop the > kerneldoc comment that is superfluous for an internal helper. > > Signed-off-by: Christoph Hellwig Looks good to me. Reviewed-by: Damien Le Moal One nit below. > --- > block/blk-

[PATCH 07/19] block: simplify bio_map_kern

2025-04-30 Thread Christoph Hellwig
Rewrite bio_map_kern using the new bio_add_* helpers and drop the kerneldoc comment that is superfluous for an internal helper. Signed-off-by: Christoph Hellwig --- block/blk-map.c | 56 - 1 file changed, 9 insertions(+), 47 deletions(-) diff --gi