Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8bd899bc
Commit
8bd899bc
authored
Oct 07, 2003
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase the NFS readahead so that we at least fill the RPC
slot table.
parent
61a70057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
fs/nfs/inode.c
fs/nfs/inode.c
+12
-1
No files found.
fs/nfs/inode.c
View file @
8bd899bc
...
...
@@ -42,6 +42,17 @@
#define NFSDBG_FACILITY NFSDBG_VFS
#define NFS_PARANOIA 1
/* Maximum number of readahead requests
* FIXME: this should really be a sysctl so that users may tune it to suit
* their needs. People that do NFS over a slow network, might for
* instance want to reduce it to something closer to 1 for improved
* interactive response.
*
* For the moment, though, we instead set it to RPC_MAXREQS, which
* is the maximum number of simultaneous RPC requests on the wire.
*/
#define NFS_MAX_READAHEAD RPC_MAXREQS
static
struct
inode
*
__nfs_fhget
(
struct
super_block
*
,
struct
nfs_fh
*
,
struct
nfs_fattr
*
);
void
nfs_zap_caches
(
struct
inode
*
);
static
void
nfs_invalidate_inode
(
struct
inode
*
);
...
...
@@ -356,7 +367,7 @@ nfs_sb_init(struct super_block *sb, rpc_authflavor_t authflavor)
server
->
acdirmin
=
server
->
acdirmax
=
0
;
sb
->
s_flags
|=
MS_SYNCHRONOUS
;
}
server
->
backing_dev_info
.
ra_pages
=
server
->
rpages
<<
2
;
server
->
backing_dev_info
.
ra_pages
=
server
->
rpages
*
NFS_MAX_READAHEAD
;
sb
->
s_maxbytes
=
fsinfo
.
maxfilesize
;
if
(
sb
->
s_maxbytes
>
MAX_LFS_FILESIZE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment