[PATCH v1 2/2] Allow developer to manually set a max block size

Gao Xiang hsiangkao at linux.alibaba.com
Wed May 31 09:51:50 AEST 2023



On 2023/5/31 04:24, Kelvin Zhang wrote:
> Signed-off-by: Kelvin Zhang <zhangkelvin at google.com>
> ---
>   include/erofs/internal.h | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/include/erofs/internal.h b/include/erofs/internal.h
> index b3d04be..6eba35d 100644
> --- a/include/erofs/internal.h
> +++ b/include/erofs/internal.h
> @@ -35,7 +35,9 @@ typedef unsigned short umode_t;
>   #define PAGE_SIZE		(1U << PAGE_SHIFT)
>   #endif
>   
> +#ifndef EROFS_MAX_BLOCK_SIZE
>   #define EROFS_MAX_BLOCK_SIZE	PAGE_SIZE
> +#endif

I have to make a configure.ac for this stuff...

Thanks,
Gao Xiang

>   
>   #define EROFS_ISLOTBITS		5
>   #define EROFS_SLOTSIZE		(1U << EROFS_ISLOTBITS)


More information about the Linux-erofs mailing list