]> Git Repo - linux.git/commit
mm: rename _count, field of the struct page, to _refcount
authorJoonsoo Kim <[email protected]>
Fri, 20 May 2016 00:10:49 +0000 (17:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit0139aa7b7fa12ceef095d99dc36606a5b10ab83a
tree94da74f2f79911a11a3c7c34f73ba971dec41a7e
parent6d061f9f6136d477932088c24ce155d7dc785746
mm: rename _count, field of the struct page, to _refcount

Many developers already know that field for reference count of the
struct page is _count and atomic type.  They would try to handle it
directly and this could break the purpose of page reference count
tracepoint.  To prevent direct _count modification, this patch rename it
to _refcount and add warning message on the code.  After that, developer
who need to handle reference count will find that field should not be
accessed directly.

[[email protected]: fix comments, per Vlastimil]
[[email protected]: Documentation/vm/transhuge.txt too]
[[email protected]: sync ethernet driver changes]
Signed-off-by: Joonsoo Kim <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Johannes Berg <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Sunil Goutham <[email protected]>
Cc: Chris Metcalf <[email protected]>
Cc: Manish Chopra <[email protected]>
Cc: Yuval Mintz <[email protected]>
Cc: Tariq Toukan <[email protected]>
Cc: Saeed Mahameed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
17 files changed:
Documentation/vm/transhuge.txt
arch/tile/mm/init.c
drivers/block/aoe/aoecmd.c
drivers/hwtracing/intel_th/msu.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/qlogic/qede/qede_main.c
fs/proc/page.c
include/linux/mm.h
include/linux/mm_types.h
include/linux/page_ref.h
include/linux/pagemap.h
kernel/kexec_core.c
mm/huge_memory.c
mm/internal.h
mm/page_alloc.c
mm/slub.c
mm/vmscan.c
This page took 0.069526 seconds and 4 git commands to generate.