bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/5] vm: reduce the size of struct vm_page


From: Samuel Thibault
Subject: Re: [PATCH 3/5] vm: reduce the size of struct vm_page
Date: Thu, 2 Jan 2014 23:48:04 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Thu 02 Jan 2014 20:02:44 +0100, a écrit :
> Previously, the bit field left 31 bits unused.  By reducing the size
> of wire_count by one bit, the size of the whole struct is reduced by
> four bytes.
> 
> * vm/vm_page.h (struct vm_page): Reduce the size of wire_count to 15
> bits.

Ack.

> ---
>  vm/vm_page.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/vm/vm_page.h b/vm/vm_page.h
> index 339d355..4fe1b41 100644
> --- a/vm/vm_page.h
> +++ b/vm/vm_page.h
> @@ -84,7 +84,7 @@ struct vm_page {
>       vm_object_t     object;         /* which object am I in (O,P) */
>       vm_offset_t     offset;         /* offset into that object (O,P) */
>  
> -     unsigned int    wire_count:16,  /* how many wired down maps use me?
> +     unsigned int    wire_count:15,  /* how many wired down maps use me?
>                                          (O&P) */
>       /* boolean_t */ inactive:1,     /* page is in inactive list (P) */
>                       active:1,       /* page is in active list (P) */
> -- 
> 1.8.5.2
> 

-- 
Samuel
#ifndef I_WISH_WORLD_WERE_PERFECT
/* It is not :-( All the routers (except for Linux) return only
...
 -+- linux/net/ipv4/ipip.c -+-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]