[PATCH] erofs: get rid of erofs_kmap_type
Gao Xiang
hsiangkao at linux.alibaba.com
Mon Feb 17 20:26:35 AEDT 2025
On 2025/2/17 17:10, Bo Liu wrote:
> Since EROFS_KMAP_ATOMIC is no longer valid, get rid of erofs_kmap_type too.
>
> Signed-off-by: Bo Liu <liubo03 at inspur.com>
> ---
> fs/erofs/data.c | 16 ++++++++--------
> fs/erofs/dir.c | 2 +-
> fs/erofs/fileio.c | 2 +-
> fs/erofs/fscache.c | 2 +-
> fs/erofs/inode.c | 6 +++---
> fs/erofs/internal.h | 10 ++--------
> fs/erofs/namei.c | 2 +-
> fs/erofs/super.c | 8 ++++----
> fs/erofs/xattr.c | 12 ++++++------
> fs/erofs/zdata.c | 4 ++--
> fs/erofs/zmap.c | 6 +++---
> 11 files changed, 32 insertions(+), 38 deletions(-)
>
> diff --git a/fs/erofs/data.c b/fs/erofs/data.c
> index 0cd6b5c4df98..386e312de8c0 100644
> --- a/fs/erofs/data.c
> +++ b/fs/erofs/data.c
> @@ -26,7 +26,7 @@ void erofs_put_metabuf(struct erofs_buf *buf)
> }
>
> void *erofs_bread(struct erofs_buf *buf, erofs_off_t offset,
> - enum erofs_kmap_type type)
> + bool need_kmap)
leave in the same line?
Otherwise it looks good to me.
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list