diff options
| author | Youling Tang <[email protected]> | 2024-07-16 10:58:16 +0800 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-09-09 09:41:47 -0400 |
| commit | 082330c361944a234db42750792b491f3b76d43b (patch) | |
| tree | e3585b47fa5b81f4acb0c133b385b617db3f0779 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9092a38a3dfd70326a47eb8d3ff57e995e770ed4 (diff) | |
bcachefs: allocate inode by using alloc_inode_sb()
The inode allocation is supposed to use alloc_inode_sb(), so convert
kmem_cache_alloc() to alloc_inode_sb().
It will also fix [1] to avoid the NULL pointer dereference BUG in
list_lru_add() when CONFIG_MEMCG is enabled.
Links:
[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/[email protected]/
Fixes: 86d81ec5f5f0 ("bcachefs: Mark bch_inode_info as SLAB_ACCOUNT")
Signed-off-by: Youling Tang <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions