mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zfs_enter rework followup
The zpl_fadvise() function was recently added and was not included in the initial patch. Update it accordingly. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #13831
This commit is contained in:
		
							parent
							
								
									4df8ccc83d
								
							
						
					
					
						commit
						7dee043af5
					
				| @ -930,8 +930,8 @@ zpl_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) | ||||
| 	if (offset < 0 || len < 0) | ||||
| 		return (-EINVAL); | ||||
| 
 | ||||
| 	ZFS_ENTER(zfsvfs); | ||||
| 	ZFS_VERIFY_ZP(zp); | ||||
| 	if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) | ||||
| 		return (error); | ||||
| 
 | ||||
| 	switch (advice) { | ||||
| 	case POSIX_FADV_SEQUENTIAL: | ||||
| @ -963,7 +963,7 @@ zpl_fadvise(struct file *filp, loff_t offset, loff_t len, int advice) | ||||
| 		break; | ||||
| 	} | ||||
| 
 | ||||
| 	ZFS_EXIT(zfsvfs); | ||||
| 	zfs_exit(zfsvfs, FTAG); | ||||
| 
 | ||||
| 	return (error); | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Brian Behlendorf
						Brian Behlendorf