On Wed, Dec 06, 2023 at 08:28:56AM -0800, Dan Schatzberg <schatzberg.dan@xxxxxxxxx> wrote: > @@ -6902,12 +6913,33 @@ static ssize_t memory_reclaim(struct kernfs_open_file *of, char *buf, ... > + int swappiness = -1; Here you use a negative number... > @@ -136,6 +136,9 @@ struct scan_control { ... > + /* Swappiness value for reclaim, if NULL use memcg/global value */ > + int *swappiness; ... and here a NULL to denote the unset value. I'd suggest unifying those. Perhaps the negative to avoid unnecessary dereferences. Thanks, Michal
Attachment:
signature.asc
Description: PGP signature