Skip to contentSkip to conversation

arm/mm: remove unused p2m_refcount in page_info

PATCH In review Wei Liu 2 participants 2 messages Mar 23, 2017

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 arm/mm: remove unused p2m_refcount in page_info

The code which used that field has been deleted. Found by code inspection.

---
Cc: Stefano Stabellini <[email protected]>
Cc: Julien Grall <[email protected]>

Compile test only

---
 xen/include/asm-arm/mm.h | 6 ------
 1 file changed, 6 deletions(-)
xen/include/asm-arm/mm.h +0 -6
index 60ccbf3769..4892155596 100644
@@ -32,12 +32,6 @@ struct page_info
         struct {
             /* Type reference count and various PGT_xxx flags and fields. */
             unsigned long type_info;
-            /*
-             * Reference count for page table used in the P2M code.
-             * The counter is protected by the p2m->lock of the
-             * associated domain.
-             */
-            unsigned long p2m_refcount;
         } inuse;
         /* Page is on a free list: ((count_info & PGC_count_mask) == 0). */
         struct {
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Wei Liu

The code which used that field has been deleted. Found by code inspection.

Quoted 29 lines

---
Cc: Stefano Stabellini <[email protected]>
Cc: Julien Grall <[email protected]>

Compile test only

---
 xen/include/asm-arm/mm.h | 6 ------
 1 file changed, 6 deletions(-)
xen/include/asm-arm/mm.h +0 -6
index 60ccbf3769..4892155596 100644
@@ -32,12 +32,6 @@ struct page_info
         struct {
             /* Type reference count and various PGT_xxx flags and fields. */
             unsigned long type_info;
-            /*
-             * Reference count for page table used in the P2M code.
-             * The counter is protected by the p2m->lock of the
-             * associated domain.
-             */
-            unsigned long p2m_refcount;
         } inuse;
         /* Page is on a free list: ((count_info & PGC_count_mask) == 0). */
         struct {
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel