History

fuse: Rename DIRECT_IO_RELAX to DIRECT_IO_ALLOW_MMAP

Although DIRECT_IO_RELAX's initial usage is to allow shared mmap, its description indicates a purpose of reducing memory footprint. This may imply that it could be further used to relax other DIRECT_IO operations in the future. Replace it with a flag DIRECT_IO_ALLOW_MMAP which does only one thing, allow shared mmap of DIRECT_IO files while still bypassing the cache on regular reads and writes. [Miklos] Also Keep DIRECT_IO_RELAX definition for backward compatibility.

Tyler Fanelli committed 3 years ago

Commit c55e0a51 parent 33cc9384 files · +14 −12Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/fuse.h+6−4
@@ -209,7 +209,7 @@ · 208 unmodified lines
209 * - add FUSE_HAS_EXPIRE_ONLY209 * - add FUSE_HAS_EXPIRE_ONLY
210 *210 *
211 * 7.39211 * 7.39
212 * - add FUSE_DIRECT_IO_RELAX212 * - add FUSE_DIRECT_IO_ALLOW_MMAP
213 * - add FUSE_STATX and related structures213 * - add FUSE_STATX and related structures
214 */214 */
215 215
@@ -409,8 +409,7 @@ struct fuse_file_lock { · 193 unmodified lines
409 * FUSE_CREATE_SUPP_GROUP: add supplementary group info to create, mkdir,409 * FUSE_CREATE_SUPP_GROUP: add supplementary group info to create, mkdir,
410 * symlink and mknod (single group that matches parent)410 * symlink and mknod (single group that matches parent)
411 * FUSE_HAS_EXPIRE_ONLY: kernel supports expiry-only entry invalidation411 * FUSE_HAS_EXPIRE_ONLY: kernel supports expiry-only entry invalidation
412 * FUSE_DIRECT_IO_RELAX: relax restrictions in FOPEN_DIRECT_IO mode, for now412 * FUSE_DIRECT_IO_ALLOW_MMAP: allow shared mmap in FOPEN_DIRECT_IO mode.
413 * allow shared mmap
414 */413 */
415#define FUSE_ASYNC_READ (1 << 0)414#define FUSE_ASYNC_READ (1 << 0)
416#define FUSE_POSIX_LOCKS (1 << 1)415#define FUSE_POSIX_LOCKS (1 << 1)
@@ -449,7 +448,10 @@ struct fuse_file_lock { · 32 unmodified lines
449#define FUSE_HAS_INODE_DAX (1ULL << 33)448#define FUSE_HAS_INODE_DAX (1ULL << 33)
450#define FUSE_CREATE_SUPP_GROUP (1ULL << 34)449#define FUSE_CREATE_SUPP_GROUP (1ULL << 34)
451#define FUSE_HAS_EXPIRE_ONLY (1ULL << 35)450#define FUSE_HAS_EXPIRE_ONLY (1ULL << 35)
452#define FUSE_DIRECT_IO_RELAX (1ULL << 36)451#define FUSE_DIRECT_IO_ALLOW_MMAP (1ULL << 36)
452
453/* Obsolete alias for FUSE_DIRECT_IO_ALLOW_MMAP */
454#define FUSE_DIRECT_IO_RELAX FUSE_DIRECT_IO_ALLOW_MMAP
453 455
454/**456/**
455 * CUSE INIT request/reply flags457 * CUSE INIT request/reply flags

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t