]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mm/page-writeback: use __this_cpu_inc() in account_page_dirtied()
authorChi Wu <wuchi.zero@gmail.com>
Tue, 29 Jun 2021 02:35:37 +0000 (19:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:47 +0000 (10:53 -0700)
commit87e3789749750d83aa085f04f74242087de0154b
tree1e6ba1c4c4b02f2fd86ad463b2eff74675af3585
parent0323155437870dbbae6e30fb659d7514c9f649da
mm/page-writeback: use __this_cpu_inc() in account_page_dirtied()

As account_page_dirtied() was always protected by xa_lock_irqsave(), so
using __this_cpu_inc() is better.

Link: https://lkml.kernel.org/r/20210512144742.4764-1-wuchi.zero@gmail.com
Signed-off-by: Chi Wu <wuchi.zero@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Howard Cochran <hcochran@kernelspring.com>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page-writeback.c