Re: [PATCH] erofs: get rid of erofs_kmap_type

From: Gao Xiang
Date: Mon Feb 17 2025 - 04:26:59 EST




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@xxxxxxxxxx>
---
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