Skip to content

fuse: DAX device based extent maps (famfs)

Miklos Szeredi fuse-devel linux-cxl nvdimm 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 4 repliesIn review
  2. v49 patches 8 repliesApplied
  3. v39 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches14 repliesSuperseded
v111 patches21 repliesSuperseded

Changes in v5 from the cover letter

- extent array (John)
- error out on truncate/hole punch on a dax backed file (Sashiko)
- small fix (Sashiko)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dax: add fsdev_dax_from_file()drivers/dax/fsdev.c drivers/dax/super.c include/linux/dax.h+26 -32 replies
2/10dax: use READ_ONCE() in dax_holder()drivers/dax/super.c+1 -11 reply
3/10fuse: add helpers for EIO return value with kernel messagefs/fuse/file.c fs/fuse/fuse_i.h fs/fuse/iomode.c +1 more+43 -610 replies
4/10fuse: support 64 bit, server allocated backing IDfs/file.c fs/fuse/backing.c fs/fuse/dev.c +6 more+252 -660 replies
5/10fuse: support opening 64 bit backing IDfs/fuse/dir.c fs/fuse/file.c fs/fuse/fuse_i.h +3 more+45 -310 replies
6/10fuse: add support for opening dax device as backingfs/fuse/backing.c fs/fuse/dir.c fs/fuse/file.c +4 more+154 -360 replies
7/10fuse: add extent map data structurefs/fuse/Makefile fs/fuse/backing.c fs/fuse/ext_map.c +3 more+251 -70 replies
8/10fuse: add extent map I/O supportfs/fuse/backing.c fs/fuse/ext_map.c fs/fuse/file.c +2 more+217 -60 replies
9/10fuse: add support for striped backingfs/fuse/ext_map.c fs/fuse/fuse_i.h fs/fuse/notify.c +1 more+33 -50 replies
10/10fuse: resolve extent maps in O(1) when possiblefs/fuse/backing.c fs/fuse/ext_map.c fs/fuse/fuse_i.h+147 -870 replies

Reviews trailers per patch

6 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohn GrovesGregory Price (Meta)Amir GoldsteinDave Jiang
SeriesR-b T-b
1/10Originally-by R-b R-b
2/10R-b R-b
3/10R-b
4/10
5/10R-b
6/10Originally-by
7/10Originally-by
8/10Originally-by R-b
9/10Originally-by R-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/10] fuse: DAX device based extent maps (famfs)

This is the FUSIfication of the famfs-fuse patchset.

- extent maps are assigned to a backing ID

- 64 bit backing ID's managed by server

- maps can be linear or cyclic (striped)

- API supports nesting, but not implemented yet (i.e. multiple striped extents per inode, a-la famfs)

libfuse/famfs trees for testing:

https://github.com/szmi/libfuse.git#extent-map-v3
https://github.com/jagalactic/famfs.git#master

This patchset:

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#for-next

Passes famfs smoke test on emulated dax device.

Comments are welcome.

Thanks,
Miklos

---
Changes since v4:

- extent array (John)
- error out on truncate/hole punch on a dax backed file (Sashiko)
- small fix (Sashiko)

Changes since v3:

- redid the first patch (prompted by sashiko: passing dev_t is racy)
- more fixes (John, Amir Sashiko)

Changes since v2:

- add a trivial prep patch modifying drivers/dax/super.c
- reserve zero value for 64 bit backing ID (Amir)
- add Originally-by: tag to acknowledge John's work
- more fixes and cleanups (Amir, Sashiko)

Changes since v1:

- moved 3 prep patches to fuse.git#for-next
- introduce FUSE_PASSTHROUGH_V2 (Amir)
- lots of small fixes and cleanups (Amir, Sashiko)

---
John Groves (2):
dax: add fsdev_dax_from_file()
fuse: resolve extent maps in O(1) when possible

Miklos Szeredi (8):
dax: use READ_ONCE() in dax_holder()
fuse: add helpers for EIO return value with kernel message
fuse: support 64 bit, server allocated backing ID
fuse: support opening 64 bit backing ID
fuse: add support for opening dax device as backing
fuse: add extent map data structure
fuse: add extent map I/O support
fuse: add support for striped backing

 drivers/dax/fsdev.c       |  23 +++
 drivers/dax/super.c       |   5 +-
 fs/file.c                 |   1 +
 fs/fuse/Makefile          |   2 +-
 fs/fuse/backing.c         | 302 ++++++++++++++++++++++++------
 fs/fuse/dev.c             |  54 ++++--
 fs/fuse/dev.h             |   3 +
 fs/fuse/dir.c             |   6 +-
 fs/fuse/ext_map.c         | 376 ++++++++++++++++++++++++++++++++++++++
 fs/fuse/file.c            |  33 +++-
 fs/fuse/fuse_i.h          |  79 +++++++-
 fs/fuse/inode.c           |  25 ++-
 fs/fuse/iomode.c          | 116 ++++++------
 fs/fuse/notify.c          |  75 ++++++++
 fs/fuse/passthrough.c     |  66 +++----
 include/linux/dax.h       |   3 +-
 include/uapi/linux/fuse.h |  53 +++++-
 17 files changed, 1044 insertions(+), 178 deletions(-)
 create mode 100644 fs/fuse/ext_map.c
Signature · 1 line
2.54.0