diff options
author | 2024-10-22 23:18:45 +0100 | |
---|---|---|
committer | 2024-10-22 23:18:45 +0100 | |
commit | 5ddc236d094d496bcd1e78aaa88bdde530073b6f (patch) | |
tree | 2435f76086b7bbf9739c05411baa2f1520cd9618 /mm/vmscan.c | |
parent | regulator: rk808: Restrict DVS GPIOs to the RK808 variant only (diff) | |
parent | regulator: core: remove machine init callback from config (diff) | |
download | wireguard-linux-5ddc236d094d496bcd1e78aaa88bdde530073b6f.tar.xz wireguard-linux-5ddc236d094d496bcd1e78aaa88bdde530073b6f.zip |
regulator: init_data handling update
Merge series from Jerome Brunet <jbrunet@baylibre.com>:
This patchset groups the regulator patches around the init_data topic
discussed on pmbus write protect patchset [1]
[1]: https://lore.kernel.org/r/20240920-pmbus-wp-v1-0-d679ef31c483@baylibre.com
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 749cdc110c74..eb4e8440c507 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -4963,8 +4963,8 @@ static void lru_gen_shrink_node(struct pglist_data *pgdat, struct scan_control * blk_finish_plug(&plug); done: - /* kswapd should never fail */ - pgdat->kswapd_failures = 0; + if (sc->nr_reclaimed > reclaimed) + pgdat->kswapd_failures = 0; } /****************************************************************************** |