diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-12 03:01:31 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-12 03:01:38 +0300 |
commit | aacd897d4d75adaae3becc2b00d8cdc9a56928d1 (patch) | |
tree | ba0e8ee98d03fe0fb41325de3053e3af3c960d14 | |
parent | fd80d14005250652e7500a97eedd68797de0b797 (diff) | |
download | linux-aacd897d4d75adaae3becc2b00d8cdc9a56928d1.tar.xz |
Revert "bcachefs: Mark bch_inode_info as SLAB_ACCOUNT"
This reverts commit 86d81ec5f5f05846c7c6e48ffb964b24cba2e669.
This wasn't tested with memcg enabled, it immediately hits a null ptr
deref in list_lru_add().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 74a1e12a7a14..fa1fee05cf8f 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -2073,8 +2073,7 @@ int __init bch2_vfs_init(void) { int ret = -ENOMEM; - bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT | - SLAB_ACCOUNT); + bch2_inode_cache = KMEM_CACHE(bch_inode_info, SLAB_RECLAIM_ACCOUNT); if (!bch2_inode_cache) goto err; |