Re: [PATCH v2 2/4] mm: clean up validate_slab()

2019-09-12 Thread Kirill A. Shutemov
On Wed, Sep 11, 2019 at 08:31:09PM -0600, Yu Zhao wrote: > The function doesn't need to return any value, and the check can be > done in one pass. > > There is a behavior change: before the patch, we stop at the first > invalid free object; after the patch, we stop at the first invalid > object,

[PATCH v2 2/4] mm: clean up validate_slab()

2019-09-11 Thread Yu Zhao
The function doesn't need to return any value, and the check can be done in one pass. There is a behavior change: before the patch, we stop at the first invalid free object; after the patch, we stop at the first invalid object, free or in use. This shouldn't matter because the original behavior