Re: [RFC] Removing b_end_io

2020-10-27 Thread Christoph Hellwig
On Sun, Oct 25, 2020 at 04:44:38AM +, Matthew Wilcox wrote: > > On my laptop, I have about 31MB allocated to buffer_heads. > > buffer_head 182728 299910104 391 : tunables000 : > slabdata 7690 7690 0 > > Reducing the size of the buffer_head by 8 bytes

Re: [RFC] Removing b_end_io

2020-10-25 Thread Matthew Wilcox
On Sun, Oct 25, 2020 at 11:56:52AM -0400, Theodore Y. Ts'o wrote: > On Sun, Oct 25, 2020 at 04:44:38AM +, Matthew Wilcox wrote: > > @@ -3068,6 +3069,12 @@ static int submit_bh_wbc(int op, int op_flags, > > struct buffer_head *bh, > > } > > > > submit_bio(bio); > > +} > > + > >

Re: [RFC] Removing b_end_io

2020-10-25 Thread Theodore Y. Ts'o
On Sun, Oct 25, 2020 at 04:44:38AM +, Matthew Wilcox wrote: > @@ -3068,6 +3069,12 @@ static int submit_bh_wbc(int op, int op_flags, struct > buffer_head *bh, > } > > submit_bio(bio); > +} > + > +static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, > +

[RFC] Removing b_end_io

2020-10-24 Thread Matthew Wilcox
On my laptop, I have about 31MB allocated to buffer_heads. buffer_head 182728 299910104 391 : tunables000 : slabdata 7690 7690 0 Reducing the size of the buffer_head by 8 bytes gets us to 96 bytes, which means we get 42 per page instead of 39 and saves me