From 027d0d17c8a4605109f09d9c988e255b64a2c19a Mon Sep 17 00:00:00 2001 From: scosu Date: Thu, 13 Jun 2019 13:59:10 +0200 Subject: fuse_lowlevel: Add max_pages support (#384) Starting with kernel version 4.20 fuse supports a new property 'max_pages' which is the maximum number of pages that can be used per request. This can be set via an argument during initialization. This new property allows writes to be larger than 128k. This patch sets the property if the matching capability is set (FUSE_MAX_PAGES). It will also set max_write to 1MiB. Filesystems have the possibility to decrease this size by setting max_write to a smaller size. The max_pages and bufsize fields are adjusted accordingly. Cc: Constantine Shulyupin Signed-off-by: Markus Pargmann --- ChangeLog.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog.rst') diff --git a/ChangeLog.rst b/ChangeLog.rst index 2885775..abbd3ee 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -4,6 +4,12 @@ Unreleased Changes * Added a new example (passthrough_hp). The functionality is similar to passthrough_ll, but the implementation focuses on performance and correctness rather than simplicity. +* Added support for fuse kernel feature `max_pages` which allows to increase + the maximum number of pages that can be used per request. This feature was + introduced in kernel 4.20. `max_pages` is set based on the value in + `max_write`. By default `max_write` will be 1MiB now for kernels that support + `max_pages`. If you want smaller buffers or writes you have to set + `max_write` manually. libfuse 3.5.0 (2019-04-16) ========================== -- cgit v1.2.3