On (25/12/15 17:31), Brian Geffon wrote:
[..]
> > struct zram_table_entry {
> > unsigned long handle;
> > - unsigned long flags;
> > + union {
> > + unsigned long __lock;
> > + struct attr {
> > + u32 flags;
> > #ifdef CONFIG_ZRAM_TRACK_ENTRY_ACTIME
> > - ktime_t ac_time;
> > + u32 ac_time;
> > #endif
>
> Why not just always enable CONFIG_ZRAM_TRACK_ENTRY_ACTIME now that it
> doesn't consume any additional space?
It's "free" only on x64. On 32bit systems the removal of
ZRAM_TRACK_ENTRY_ACTIME will unconditionally add 4 bytes
per zram_table_entry.