]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg-v1: no need for memcg locking for dirty tracking
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 25 Oct 2024 01:23:00 +0000 (18:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:24 +0000 (21:29 -0700)
commit0d807e92f0b4d2fce6d286b780813e139b2efce0
tree6b6c02f3ad3170ebcc17c9d145dbae98cdb27563
parente748d10805a61507c50b37c5783e4fb6e5142aac
memcg-v1: no need for memcg locking for dirty tracking

During the era of memcg charge migration, the kernel has to be make
sure that the dirty stat updates do not race with the charge migration.
Otherwise it might update the dirty stats of the wrong memcg.  Now
with the memcg charge migration gone, there is no more race for dirty
stat updates and the previous locking can be removed.

Link: https://lkml.kernel.org/r/20241025012304.2473312-4-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c
mm/page-writeback.c