On 21 Aug 2023, at 7:56, Kefeng Wang wrote: > Directly check the return of isolate_hugetlb() and folio_isolate_lru() > to remove isolated variable, also setup err = -EBUSY in advance before > isolation, and update err only when successfully queued for migration, > which could help us to unify and simplify code a bit. > > Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> > --- > mm/migrate.c | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > LGTM. Reviewed-by: Zi Yan <ziy@xxxxxxxxxx> -- Best Regards, Yan, Zi
Attachment:
signature.asc
Description: OpenPGP digital signature