erofs: dax support for non-tailpacking regular file
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 5 Aug 2021 00:36:00 +0000 (08:36 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 9 Aug 2021 16:14:59 +0000 (00:14 +0800)
commit06252e9ce05b94b587e522667b85848a30197b15
tree1c46bf38cff515dea5bc1399d3f6557986076b4e
parenta08e67a0280215f74eccf14fda81dd7fed6596ba
erofs: dax support for non-tailpacking regular file

DAX is quite useful for some VM use cases in order to save guest
memory extremely with minimal lightweight EROFS.

In order to prepare for such use cases, add preliminary dax support
for non-tailpacking regular files for now.

Tested with the DRAM-emulated PMEM and the EROFS image generated by
"mkfs.erofs -Enoinline_data enwik9.fsdax.img enwik9"

Link: https://lore.kernel.org/r/20210805003601.183063-3-hsiangkao@linux.alibaba.com
Cc: nvdimm@lists.linux.dev
Cc: linux-fsdevel@vger.kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Documentation/filesystems/erofs.rst
fs/erofs/data.c
fs/erofs/inode.c
fs/erofs/internal.h
fs/erofs/super.c