erofs: use meta buffers for reading directories
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 16 Mar 2022 01:22:45 +0000 (09:22 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 16 Mar 2022 16:09:02 +0000 (00:09 +0800)
commitfe5de5859d44eafd5828ec4910cd52cdad8ada1f
treef430514691d57e1cc9ef8d065c6a8645ddd67c50
parenta942da24abc5839c11a8fc2a4b7cb268ea94ba54
erofs: use meta buffers for reading directories

Previously, directory inodes are directly handled with page cache
interfaces.

In order to support sub-page directory blocks and folios, let's
convert them into the latest metabuf infrastructure as well and
this patch addresses the readdir case first.

Link: https://lore.kernel.org/r/20220316012246.95131-1-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c
fs/erofs/dir.c
fs/erofs/internal.h