]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: X86: Remove unnecessary GFP_KERNEL_ACCOUNT for temporary variables
authorPeng Hao <flyingpeng@tencent.com>
Mon, 24 Jun 2024 01:20:16 +0000 (09:20 +0800)
committerSean Christopherson <seanjc@google.com>
Fri, 28 Jun 2024 16:52:16 +0000 (09:52 -0700)
commitdd103407ca315b467074d74b3580abe210c4c695
tree57ca989ce692dd30591ae9f1408d5881ca204dd2
parent8815d77cbc99ef817a58b02af206706890ae2b80
KVM: X86: Remove unnecessary GFP_KERNEL_ACCOUNT for temporary variables

Some variables allocated in kvm_arch_vcpu_ioctl are released when
the function exits, so there is no need to set GFP_KERNEL_ACCOUNT.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20240624012016.46133-1-flyingpeng@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c