]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
erofs: add missing documentation about `directio` mount option
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 02:52:52 +0000 (10:52 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:07:51 +0000 (00:07 +0800)
Document the `directio` mount option for file-backed mounts, because
recent users need this and this mount option has been available since
commit 6422cde1b0d5 ("erofs: use buffered I/O for file-backed mounts
by default") without proper documentation.

Reported-by: Yuxuan Liu <cdjddzy@foxmail.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Documentation/filesystems/erofs.rst

index 08194f194b9424af9ca6d61a88be0eaea1ded78c..96101c3fe53a5fe9290933caa403b67392ed35c2 100644 (file)
@@ -125,6 +125,8 @@ dax={always,never}     Use direct access (no page cache).  See
                        Documentation/filesystems/dax.rst.
 dax                    A legacy option which is an alias for ``dax=always``.
 device=%s              Specify a path to an extra device to be used together.
+directio               (For file-backed mounts) Use direct I/O to access backing
+                       files, and asynchronous I/O will be enabled if supported.
 fsid=%s                Specify a filesystem image ID for Fscache back-end.
 domain_id=%s           Specify a domain ID in fscache mode so that different images
                        with the same blobs under a given domain ID can share storage.