Skip to content

fuse: Rename DIRECT_IO_{RELAX -> ALLOW_MMAP}

Tyler Fanelli linux-fsdevel 1 version Applied

Status from this message: Applied, thanks. Will send the PR during this merge window, since the

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 45 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2fs/fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAPfs/fuse/file.c fs/fuse/fuse_i.h fs/fuse/inode.c +1 more+11 -122 replies
2/2docs/fuse-io: Document the usage of DIRECT_IO_ALLOW_MMAPDocumentation/filesystems/fuse-io.rst+2 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] fuse: Rename DIRECT_IO_{RELAX -> ALLOW_MMAP}

At the moment, FUSE_INIT's DIRECT_IO_RELAX flag only serves the purpose of allowing shared mmap of files opened/created with DIRECT_IO enabled. However, it leaves open the possibility of further relaxing the DIRECT_IO restrictions (and in-effect, the cache coherency guarantees of DIRECT_IO) in the future.

The DIRECT_IO_ALLOW_MMAP flag leaves no ambiguity of its purpose. It only serves to allow shared mmap of DIRECT_IO files, while still bypassing the cache on regular reads and writes. The shared mmap is the only loosening of the cache policy that can take place with the flag. This removes some ambiguity and introduces a more stable flag to be used in FUSE_INIT. Furthermore, we can document that to allow shared mmap'ing of DIRECT_IO files, a user must enable DIRECT_IO_ALLOW_MMAP.

Tyler Fanelli (2):
fs/fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP docs/fuse-io: Document the usage of DIRECT_IO_ALLOW_MMAP

 Documentation/filesystems/fuse-io.rst | 3 ++-
 fs/fuse/file.c                        | 6 +++---
 fs/fuse/fuse_i.h                      | 4 ++--
 fs/fuse/inode.c                       | 6 +++---
 include/uapi/linux/fuse.h             | 7 +++----
 5 files changed, 13 insertions(+), 13 deletions(-)
Signature · 1 line
2.40.1