diff options
author | Chunwei Chen <[email protected]> | 2017-01-31 13:44:01 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-31 13:44:01 -0800 |
commit | 97048200f888afc0b1387bff75049cf37e9715bd (patch) | |
tree | c8b32caa621fd3833499165708f71fc5bcf2dca7 /module/spl/spl-vnode.c | |
parent | 43b857fddb0aa0a2fef1e00c696a80056c6367a8 (diff) |
Use kernel slab for vn_cache and vn_file_cache
Resolve a false positive in the kmemleak checker by shifting to the
kernel slab. It shows up because vn_file_cache is using KMC_KMEM
which is directly allocated using __get_free_pages, which is not
automatically tracked by kmemleak.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #599
Diffstat (limited to 'module/spl/spl-vnode.c')
-rw-r--r-- | module/spl/spl-vnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/spl/spl-vnode.c b/module/spl/spl-vnode.c index d02e81643..cd276b5c8 100644 --- a/module/spl/spl-vnode.c +++ b/module/spl/spl-vnode.c @@ -897,13 +897,13 @@ spl_vn_init(void) sizeof(struct vnode), 64, vn_cache_constructor, vn_cache_destructor, - NULL, NULL, NULL, KMC_KMEM); + NULL, NULL, NULL, 0); vn_file_cache = kmem_cache_create("spl_vn_file_cache", sizeof(file_t), 64, vn_file_cache_constructor, vn_file_cache_destructor, - NULL, NULL, NULL, KMC_KMEM); + NULL, NULL, NULL, 0); return (0); } /* vn_init() */ |