Re: [PATCH] kernel: sysctl: make drop_caches write-only

From: Chris Down
Date: Fri Nov 01 2019 - 06:59:04 EST


Johannes Weiner writes:
Currently, the drop_caches proc file and sysctl read back the last
value written, suggesting this is somehow a stateful setting instead
of a one-time command. Make it write-only, like e.g. compact_memory.

Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Since we already have the kmsg notifier when it's used, this seems reasonable to me.

Acked-by: Chris Down <chris@xxxxxxxxxxxxxx>