Commit 6d06b04
quota: allocate dquot_hash with kmalloc()
dquot_init() allocates a single page for dquot_hash with
__get_free_pages().
kmalloc() is a better API for such use and it also provides better
scalability and more debugging possibilities.
Replace use of __get_free_pages() with kmalloc() and get rid of the order
variable that remained 0 for more than 20 years.
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Link: https://patch.msgid.link/20260523-b4-fs-v1-1-275e36a83f0e@kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>1 parent 5f04194 commit 6d06b04
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3022 | 3022 | | |
3023 | 3023 | | |
3024 | 3024 | | |
3025 | | - | |
| 3025 | + | |
3026 | 3026 | | |
3027 | 3027 | | |
3028 | 3028 | | |
| |||
3035 | 3035 | | |
3036 | 3036 | | |
3037 | 3037 | | |
3038 | | - | |
3039 | | - | |
| 3038 | + | |
3040 | 3039 | | |
3041 | 3040 | | |
3042 | 3041 | | |
| |||
3046 | 3045 | | |
3047 | 3046 | | |
3048 | 3047 | | |
3049 | | - | |
| 3048 | + | |
3050 | 3049 | | |
3051 | 3050 | | |
3052 | 3051 | | |
3053 | 3052 | | |
3054 | 3053 | | |
3055 | 3054 | | |
3056 | 3055 | | |
3057 | | - | |
3058 | | - | |
| 3056 | + | |
| 3057 | + | |
3059 | 3058 | | |
3060 | 3059 | | |
3061 | 3060 | | |
| |||
0 commit comments