nfsd4: estimate sequence response size
Otherwise a following patch would turn off all 4.1 zero-copy reads. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								b86cef60da
							
						
					
				
			
			
				commit
				
					
						ccae70a9ee
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1565,6 +1565,12 @@ static inline u32 nfsd4_rename_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op | ||||||
| 		+ op_encode_change_info_maxsz) * sizeof(__be32); | 		+ op_encode_change_info_maxsz) * sizeof(__be32); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | static inline u32 nfsd4_sequence_rsize(struct svc_rqst *rqstp, | ||||||
|  | 				       struct nfsd4_op *op) | ||||||
|  | { | ||||||
|  | 	return NFS4_MAX_SESSIONID_LEN + 20; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) | static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) | ||||||
| { | { | ||||||
| 	return (op_encode_hdr_size + nfs4_fattr_bitmap_maxsz) * sizeof(__be32); | 	return (op_encode_hdr_size + nfs4_fattr_bitmap_maxsz) * sizeof(__be32); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 J. Bruce Fields
				J. Bruce Fields