diff options
| author | Mike Snitzer <[email protected]> | 2025-09-06 21:25:11 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2025-10-01 19:54:01 +0000 |
| commit | 6304affe45648294229d18cab2b4ba6d40045570 (patch) | |
| tree | 35b39d4217e8cdffbd2485f4f02694a682f2a583 /lib/test_fortify/write_overflow-strlcpy-src.c | |
| parent | NFSD: Do the grace period check in ->proc_layoutget (diff) | |
| download | kernel-6304affe45648294229d18cab2b4ba6d40045570.tar.gz kernel-6304affe45648294229d18cab2b4ba6d40045570.zip | |
NFSD: Add io_cache_{read,write} controls to debugfs
Add 'io_cache_read' to NFSD's debugfs interface so that any data
read by NFSD will either be:
- cached using page cache (NFSD_IO_BUFFERED=0)
- cached but removed from the page cache upon completion
(NFSD_IO_DONTCACHE=1).
io_cache_read may be set by writing to:
/sys/kernel/debug/nfsd/io_cache_read
Add 'io_cache_write' to NFSD's debugfs interface so that any data
written by NFSD will either be:
- cached using page cache (NFSD_IO_BUFFERED=0)
- cached but removed from the page cache upon completion
(NFSD_IO_DONTCACHE=1).
io_cache_write may be set by writing to:
/sys/kernel/debug/nfsd/io_cache_write
The default value for both settings is NFSD_IO_BUFFERED, which is
NFSD's existing behavior for both read and write. Changes to these
settings take immediate effect for all exports and NFS versions.
Currently only xfs and ext4 implement RWF_DONTCACHE. For file
systems that do not implement RWF_DONTCACHE, NFSD use only buffered
I/O when the io_cache setting is NFSD_IO_DONTCACHE.
Signed-off-by: Mike Snitzer <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions
