mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Miscellaneous code cleanup
Remove some extra whitespace. Use pointer-typed asserts in Linux's znode cache destructor for more info when debugging. Simplify a couple of conversions from inode to znode when we already have the znode. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #11974
This commit is contained in:
@@ -175,14 +175,12 @@ static int
|
||||
zfs_znode_cache_constructor_smr(void *mem, int size __unused, void *private,
|
||||
int flags)
|
||||
{
|
||||
|
||||
return (zfs_znode_cache_constructor(mem, private, flags));
|
||||
}
|
||||
|
||||
static void
|
||||
zfs_znode_cache_destructor_smr(void *mem, int size __unused, void *private)
|
||||
{
|
||||
|
||||
zfs_znode_cache_destructor(mem, private);
|
||||
}
|
||||
|
||||
@@ -202,7 +200,6 @@ zfs_znode_init(void)
|
||||
static znode_t *
|
||||
zfs_znode_alloc_kmem(int flags)
|
||||
{
|
||||
|
||||
return (uma_zalloc_smr(znode_uma_zone, flags));
|
||||
}
|
||||
|
||||
@@ -228,7 +225,6 @@ zfs_znode_init(void)
|
||||
static znode_t *
|
||||
zfs_znode_alloc_kmem(int flags)
|
||||
{
|
||||
|
||||
return (kmem_cache_alloc(znode_cache, flags));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user