Re: [PATCH 5/5] migration/ram: Merge save_zero_page functions

2023-08-15 Thread Fabiano Rosas
Peter Xu writes: > On Tue, Aug 15, 2023 at 11:38:28AM -0300, Fabiano Rosas wrote: >> We don't need to do this in two pieces. One single function makes it >> easier to grasp, specially since it removes the indirection on the >> return value handling. >> >> Signed-off-by: Fabiano Rosas >> --- >>

Re: [PATCH 5/5] migration/ram: Merge save_zero_page functions

2023-08-15 Thread Peter Xu
On Tue, Aug 15, 2023 at 11:38:28AM -0300, Fabiano Rosas wrote: > We don't need to do this in two pieces. One single function makes it > easier to grasp, specially since it removes the indirection on the > return value handling. > > Signed-off-by: Fabiano Rosas > --- > migration/ram.c | 41 ++

[PATCH 5/5] migration/ram: Merge save_zero_page functions

2023-08-15 Thread Fabiano Rosas
We don't need to do this in two pieces. One single function makes it easier to grasp, specially since it removes the indirection on the return value handling. Signed-off-by: Fabiano Rosas --- migration/ram.c | 41 +++-- 1 file changed, 11 insertions(+), 30 del