Join GitHub today
Don't read meminfo if there are no shrinkers #10
If no shrinkers have been registered, there is no reason to read /proc/meminfo.
This allows some commands to run without needing the /proc filesystem to be mounted including format, show-super, unlock, --help, and version.
Since list_empty only does a simple pointer comparison, it seemed unnecessary to take the shrinker_lock.