diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-10-18 18:53:13 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2022-12-07 10:56:31 +0800 |
commit | 927e5010ff5bd7446a22c511ab8643b9385ddf4d (patch) | |
tree | 2015ead63389abeecbebfc6e4f773a5849521390 /fs/erofs/internal.h | |
parent | e6687b89225ee9c817e6dcbadc873f6a4691e5c2 (diff) | |
download | linux-stable-927e5010ff5bd7446a22c511ab8643b9385ddf4d.tar.gz linux-stable-927e5010ff5bd7446a22c511ab8643b9385ddf4d.tar.bz2 linux-stable-927e5010ff5bd7446a22c511ab8643b9385ddf4d.zip |
erofs: use kmap_local_page() only for erofs_bread()
Convert all mapped erofs_bread() users to use kmap_local_page()
instead of kmap() or kmap_atomic().
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-and-tested-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20221018105313.4940-1-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r-- | fs/erofs/internal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index e51f27b6bde1..bb8501c0ff5b 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -255,8 +255,7 @@ static inline int erofs_wait_on_workgroup_freezed(struct erofs_workgroup *grp) enum erofs_kmap_type { EROFS_NO_KMAP, /* don't map the buffer */ - EROFS_KMAP, /* use kmap() to map the buffer */ - EROFS_KMAP_ATOMIC, /* use kmap_atomic() to map the buffer */ + EROFS_KMAP, /* use kmap_local_page() to map the buffer */ }; struct erofs_buf { |