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
Kirill Smelkov
linux
Commits
622f560e
Commit
622f560e
authored
May 16, 2014
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: read size estimate should include padding
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
24906f32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4proc.c
+1
-1
No files found.
fs/nfsd/nfs4proc.c
View file @
622f560e
...
@@ -1489,7 +1489,7 @@ static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
...
@@ -1489,7 +1489,7 @@ static inline u32 nfsd4_read_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
if
(
rlen
>
maxcount
)
if
(
rlen
>
maxcount
)
rlen
=
maxcount
;
rlen
=
maxcount
;
return
(
op_encode_hdr_size
+
2
)
*
sizeof
(
__be32
)
+
rlen
;
return
(
op_encode_hdr_size
+
2
+
XDR_QUADLEN
(
rlen
))
*
sizeof
(
__be32
)
;
}
}
static
inline
u32
nfsd4_readdir_rsize
(
struct
svc_rqst
*
rqstp
,
struct
nfsd4_op
*
op
)
static
inline
u32
nfsd4_readdir_rsize
(
struct
svc_rqst
*
rqstp
,
struct
nfsd4_op
*
op
)
...
...
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