Skip to content

erofs: dio/dax support for non-tailpacking cases

Gao Xiang linux-erofs linux-fsdevel lkml nvdimm 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v1 RFC2 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- allow 'dax=always' and 'dax=never' to keep in sync with ext4/xfs

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2erofs: iomap support for non-tailpacking DIOfs/erofs/Kconfig fs/erofs/data.c fs/erofs/inode.c +1 more+108 -10 replies
2/2erofs: dax support for non-tailpacking regular filefs/erofs/data.c fs/erofs/inode.c fs/erofs/internal.h +1 more+105 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] erofs: dio/dax support for non-tailpacking cases

Hi folks,

This patchset mainly adds preliminary EROFS iomap dio/dax support for non-tailpacking uncompressed cases.

Direct I/O is useful in certain scenarios for uncompressed files. For example, double pagecache can be avoid by direct I/O when loop device is used for uncompressed files containing upper layer compressed filesystem.

Also, DAX is quite useful for some VM use cases in order to save guest memory extremely by using the minimal lightweight EROFS.

Tail-packing inline iomap support will be handled later since currently iomap doesn't support such data pattern, which is independent to non-tailpacking cases.

Comments are welcome. Thanks for your time on reading this!

Thanks,
Gao Xiang

changes since v1:
- allow 'dax=always' and 'dax=never' to keep in sync with ext4/xfs

Gao Xiang (1):
erofs: dax support for non-tailpacking regular file

Huang Jianan (1):
erofs: iomap support for non-tailpacking DIO

 fs/erofs/Kconfig    |   1 +
 fs/erofs/data.c     | 142 +++++++++++++++++++++++++++++++++++++++++++-
 fs/erofs/inode.c    |   9 ++-
 fs/erofs/internal.h |   4 ++
 fs/erofs/super.c    |  60 ++++++++++++++++++-
 5 files changed, 212 insertions(+), 4 deletions(-)
Signature · 1 line
2.24.4