diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-04 00:42:53 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-21 18:39:46 +0300 |
commit | 895fbf1cf02f0c913bb443e9ae18a230bbd174c1 (patch) | |
tree | ce79fd3cd036faa5815c8d7f872c8ee88d772708 /fs/bcachefs/btree_cache.c | |
parent | 4645855df01eda7c421c182515215682e0451b9b (diff) | |
download | linux-895fbf1cf02f0c913bb443e9ae18a230bbd174c1.tar.xz |
bcachefs: Use __GFP_ACCOUNT for reclaimable memory
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_cache.c')
-rw-r--r-- | fs/bcachefs/btree_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c index 7e74df9f194c..02e6e609e377 100644 --- a/fs/bcachefs/btree_cache.c +++ b/fs/bcachefs/btree_cache.c @@ -102,6 +102,8 @@ static int btree_node_data_alloc(struct bch_fs *c, struct btree *b, gfp_t gfp) { BUG_ON(b->data || b->aux_data); + gfp |= __GFP_ACCOUNT|__GFP_RECLAIMABLE; + b->data = kvmalloc(btree_buf_bytes(b), gfp); if (!b->data) return -BCH_ERR_ENOMEM_btree_node_mem_alloc; |