Re: [PATCH 4/4] [RESEND] Btrfs: reduce size of struct btrfs_inode

2018-05-01 Thread David Sterba
On Sat, Apr 28, 2018 at 10:01:57AM +, Timofey Titovets wrote: > May be i misunderstood something, but i was think that slab combine > several pages in continuous range, so object in slab can cross page > boundary. So, all calculation will be very depends on scale of slab > size. > > i.e. on

Re: [PATCH 4/4] [RESEND] Btrfs: reduce size of struct btrfs_inode

2018-04-28 Thread Timofey Titovets
чт, 26 апр. 2018 г. в 16:44, David Sterba : > On Wed, Apr 25, 2018 at 02:37:17AM +0300, Timofey Titovets wrote: > > Currently btrfs_inode have size equal 1136 bytes. (On x86_64). > > > > struct btrfs_inode store several vars releated to compression code, > > all states use 1 or 2

Re: [PATCH 4/4] [RESEND] Btrfs: reduce size of struct btrfs_inode

2018-04-26 Thread David Sterba
On Wed, Apr 25, 2018 at 02:37:17AM +0300, Timofey Titovets wrote: > Currently btrfs_inode have size equal 1136 bytes. (On x86_64). > > struct btrfs_inode store several vars releated to compression code, > all states use 1 or 2 bits. > > Lets declare bitfields for compression releated vars, to

[PATCH 4/4] [RESEND] Btrfs: reduce size of struct btrfs_inode

2018-04-24 Thread Timofey Titovets
Currently btrfs_inode have size equal 1136 bytes. (On x86_64). struct btrfs_inode store several vars releated to compression code, all states use 1 or 2 bits. Lets declare bitfields for compression releated vars, to reduce sizeof btrfs_inode to 1128 bytes. Signed-off-by: Timofey Titovets