Messages in this thread | | | From | Miklos Szeredi <> | Date | Mon, 26 Feb 2024 12:01:07 +0100 | Subject | Re: [PATCH v1 2/3] fuse: use GFP_KERNEL_ACCOUNT for allocations in fuse_dev_alloc |
| |
On Fri, 5 Jan 2024 at 16:21, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> wrote: > > fuse_dev_alloc() is called from the process context and it makes > sense to properly account allocated memory to the kmemcg as these > allocations are for long living objects.
Are the rules about when to use __GFP_ACCOUNT and when not documented somewhere?
I notice that most filesystem objects are allocated with __GFP_ACCOUNT, but struct super_block isn't. Is there a reason for that?
Thanks, Miklos
| |