mirror_zfs/include/os/linux
Adam D. Moss ac6f332154 Linux: always check or verify return of igrab()
zhold() wraps igrab() on Linux, and igrab() may fail when the inode 
is in the process of being deleted.  This means zhold() must only be
called when a reference exists and therefore it cannot be deleted. 
This is the case for all existing consumers so add a VERIFY and a
comment explaining this requirement.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Adam Moss <c@yotes.com>
Closes #11704
2021-06-23 13:22:15 -07:00
..
kernel linux 5.13 compat: bdevops->revalidate_disk() removed (#12122) 2021-06-23 13:22:15 -07:00
spl Microoptimizations for VERIFY() and friends 2021-06-23 13:22:14 -07:00
zfs Linux: always check or verify return of igrab() 2021-06-23 13:22:15 -07:00
Makefile.am OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00