mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
Prefer VERIFY0(n) over VERIFY(n == 0)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17591
This commit is contained in:
committed by
Brian Behlendorf
parent
2564308cb2
commit
c39e076f23
@@ -49,7 +49,7 @@ zpl_inode_alloc(struct super_block *sb)
|
||||
static void
|
||||
zpl_inode_free(struct inode *ip)
|
||||
{
|
||||
ASSERT(atomic_read(&ip->i_count) == 0);
|
||||
ASSERT0(atomic_read(&ip->i_count));
|
||||
zfs_inode_free(ip);
|
||||
}
|
||||
#endif
|
||||
@@ -57,7 +57,7 @@ zpl_inode_free(struct inode *ip)
|
||||
static void
|
||||
zpl_inode_destroy(struct inode *ip)
|
||||
{
|
||||
ASSERT(atomic_read(&ip->i_count) == 0);
|
||||
ASSERT0(atomic_read(&ip->i_count));
|
||||
zfs_inode_destroy(ip);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user