Created
October 1, 2021 06:06
-
-
Save ccope/0ff1cac336fceb827696c40715a4a828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h | |
index 9f136763fbff..66a74ad058c8 100644 | |
--- a/fs/fuse/fuse_i.h | |
+++ b/fs/fuse/fuse_i.h | |
@@ -33,10 +33,10 @@ | |
#include <linux/user_namespace.h> | |
/** Default max number of pages that can be used in a single read request */ | |
-#define FUSE_DEFAULT_MAX_PAGES_PER_REQ 512 | |
+#define FUSE_DEFAULT_MAX_PAGES_PER_REQ 1024 | |
/** Maximum of max_pages received in init_out */ | |
-#define FUSE_MAX_MAX_PAGES 2048 | |
+#define FUSE_MAX_MAX_PAGES 4096 | |
/** Bias for fi->writectr, meaning new writepages must not be sent */ | |
#define FUSE_NOWRITE INT_MIN | |
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c | |
index d5b4bbedecec..9aae4ce9d952 100644 | |
--- a/fs/fuse/inode.c | |
+++ b/fs/fuse/inode.c | |
@@ -1050,7 +1050,7 @@ static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb) | |
if (err) | |
return err; | |
- sb->s_bdi->ra_pages = VM_READAHEAD_PAGES * 16; | |
+ sb->s_bdi->ra_pages = VM_READAHEAD_PAGES * 32; | |
/* fuse does it's own writeback accounting */ | |
sb->s_bdi->capabilities = BDI_CAP_NO_ACCT_WB | BDI_CAP_STRICTLIMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment