[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 03/15] migration: Cleanup xbzrle zero page cache update lo
|
From: |
Juan Quintela |
|
Subject: |
Re: [PATCH v2 03/15] migration: Cleanup xbzrle zero page cache update logic |
|
Date: |
Mon, 14 Nov 2022 16:08:07 +0100 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Peter Xu <peterx@redhat.com> wrote:
> The major change is to replace "!save_page_use_compression()" with
> "xbzrle_enabled" to make it clear.
>
> Reasonings:
>
> (1) When compression enabled, "!save_page_use_compression()" is exactly the
> same as checking "xbzrle_enabled".
>
> (2) When compression disabled, "!save_page_use_compression()" always return
> true. We used to try calling the xbzrle code, but after this change we
> won't, and we shouldn't need to.
>
> Since at it, drop the xbzrle_enabled check in xbzrle_cache_zero_page()
> because with this change it's not needed anymore.
>
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 03/15] migration: Cleanup xbzrle zero page cache update logic,
Juan Quintela <=