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. [akpm@linux-foundation.org: fix comments, per Vlastimil] [akpm@linux-foundation.org: Documentation/vm/transhuge.txt too] [sfr@canb.auug.org.au: sync ethernet driver changes] Signed-off-by:Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by:
Stephen Rothwell <sfr@canb.auug.org.au> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Hugh Dickins <hughd@google.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: Sunil Goutham <sgoutham@cavium.com> Cc: Chris Metcalf <cmetcalf@mellanox.com> Cc: Manish Chopra <manish.chopra@qlogic.com> Cc: Yuval Mintz <yuval.mintz@qlogic.com> Cc: Tariq Toukan <tariqt@mellanox.com> Cc: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/vm/transhuge.txt 5 additions, 5 deletionsDocumentation/vm/transhuge.txt
- arch/tile/mm/init.c 1 addition, 1 deletionarch/tile/mm/init.c
- drivers/block/aoe/aoecmd.c 1 addition, 1 deletiondrivers/block/aoe/aoecmd.c
- drivers/hwtracing/intel_th/msu.c 1 addition, 1 deletiondrivers/hwtracing/intel_th/msu.c
- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c 10 additions, 10 deletionsdrivers/net/ethernet/mellanox/mlx5/core/en_rx.c
- drivers/net/ethernet/qlogic/qede/qede_main.c 2 additions, 2 deletionsdrivers/net/ethernet/qlogic/qede/qede_main.c
- fs/proc/page.c 1 addition, 1 deletionfs/proc/page.c
- include/linux/mm.h 1 addition, 1 deletioninclude/linux/mm.h
- include/linux/mm_types.h 9 additions, 5 deletionsinclude/linux/mm_types.h
- include/linux/page_ref.h 13 additions, 13 deletionsinclude/linux/page_ref.h
- include/linux/pagemap.h 4 additions, 4 deletionsinclude/linux/pagemap.h
- kernel/kexec_core.c 1 addition, 1 deletionkernel/kexec_core.c
- mm/huge_memory.c 2 additions, 2 deletionsmm/huge_memory.c
- mm/internal.h 1 addition, 1 deletionmm/internal.h
- mm/page_alloc.c 2 additions, 2 deletionsmm/page_alloc.c
- mm/slub.c 2 additions, 2 deletionsmm/slub.c
- mm/vmscan.c 2 additions, 2 deletionsmm/vmscan.c
Loading
Please register or sign in to comment