On Fri, May 03, 2024 at 02:53:47AM -0700, Luis Chamberlain wrote: > +int split_folio_to_list(struct folio *folio, struct list_head *list); ... > +static inline int split_folio_to_list(struct page *page, struct list_head *list) > +{ Type mismatch. Surprised the build bots didn't whine yet. > > + min_order = mapping_min_folio_order(folio->mapping); > + if (new_order < min_order) { > + VM_WARN_ONCE(1, "Cannot split mapped folio below min-order: %u", > + min_order); > + ret = -EINVAL; > + goto out; > + } Wouldn't we prefer this as: if (VM_WARN_ONCE(new_order < min_order, "Cannot split mapped folio below min-order: %u", min_order) { ret = -EINVAL; goto out; }