linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] FUSE: allow drivers to increase readahead.
@ 2022-03-02 17:18 Kevin Vigor
  2022-03-02 17:18 ` [RFC PATCH 1/1] FUSE: Add FUSE_TRUST_MAX_RA flag enabling readahead settings >128KB Kevin Vigor
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Vigor @ 2022-03-02 17:18 UTC (permalink / raw)
  To: miklos; +Cc: linux-fsdevel, linux-kernel, Kevin Vigor

Summary:

Allow FUSE drivers to increase readahead setting.

Details:

FUSE drivers can set a max_readahead value in the fuse_init_out value.

However, this value can currently only decrease the readahead setting
from the default, which is set to VM_READAHEAD_PAGES in bdi_alloc().

Add a flag which causes the kernel driver to accept whatever
max_readahead value the user provides in fuse_init_out. Note that
read_ahead_kb_store() similarly allows users to set arbitrary ra_pages
values.

Kevin Vigor (1):
  FUSE: Add FUSE_TRUST_MAX_RA flag enabling readahead settings >128KB.

 fs/fuse/inode.c           | 8 ++++++--
 include/uapi/linux/fuse.h | 3 +++
 2 files changed, 9 insertions(+), 2 deletions(-)

-- 
2.33.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-10 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-02 17:18 [RFC PATCH 0/1] FUSE: allow drivers to increase readahead Kevin Vigor
2022-03-02 17:18 ` [RFC PATCH 1/1] FUSE: Add FUSE_TRUST_MAX_RA flag enabling readahead settings >128KB Kevin Vigor
2022-03-10 10:27   ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).