aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2024-09-26 17:33:39 -0700
committerBernd Schubert <bernd.schubert@fastmail.fm>2024-09-28 12:24:25 +0200
commit9069ad9eb6ba908de9cbbdd8ba411cac963101ff (patch)
treebf71e09ee17e50ce571644dc3aaf33209a120e23 /lib/fuse_i.h
parent78eeae60bb5a978eae4c3ce705c58189b762a24b (diff)
downloadlibfuse-9069ad9eb6ba908de9cbbdd8ba411cac963101ff.tar.gz
Change FUSE_MAX_MAX_PAGES to FUSE_DEFAULT_MAX_PAGES_LIMIT
A recent upstream patch [1] changed FUSE_MAX_MAX_PAGES to FUSE_DEFAULT_MAX_PAGES_LIMIT. Update libfuse to use FUSE_DEFAULT_MAX_PAGES_LIMIT as well instead of FUSE_MAX_MAX_PAGES. [1] https://lore.kernel.org/linux-fsdevel/20240923171311.1561917-1-joannelkoong@gmail.com/T/#t
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 1519ce0..2815a8a 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -196,7 +196,13 @@ int fuse_session_loop_mt_312(struct fuse_session *se, struct fuse_loop_config *c
int fuse_loop_cfg_verify(struct fuse_loop_config *config);
-#define FUSE_MAX_MAX_PAGES 256
+/*
+ * This can be changed dynamically on recent kernels through the
+ * /proc/sys/fs/fuse/max_pages_limit interface.
+ *
+ * Older kernels will always use the default value.
+ */
+#define FUSE_DEFAULT_MAX_PAGES_LIMIT 256
#define FUSE_DEFAULT_MAX_PAGES_PER_REQ 32
/* room needed in buffer to accommodate header */