mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Remove iov_iter_advance() for iter_write
The additional iter advance is incorrect, as copy_from_iter() has
already done the right thing.  This will result in the following
warning being printed to the console as of the 5.12 kernel.
    Attempted to advance past end of bvec iter
This change should have been included with #11378 when a
similar change was made on the read side.
Suggested-by: @siebenmann
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Issue #11378
Closes #12041
Closes #12155
			
			
This commit is contained in:
		
							parent
							
								
									f7d7ee0583
								
							
						
					
					
						commit
						3f81aba766
					
				@ -342,9 +342,6 @@ zpl_iter_write(struct kiocb *kiocb, struct iov_iter *from)
 | 
			
		||||
	ssize_t wrote = count - uio.uio_resid;
 | 
			
		||||
	kiocb->ki_pos += wrote;
 | 
			
		||||
 | 
			
		||||
	if (wrote > 0)
 | 
			
		||||
		iov_iter_advance(from, wrote);
 | 
			
		||||
 | 
			
		||||
	return (wrote);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user