diff options
author | Tim Chase <[email protected]> | 2016-06-16 10:19:32 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-06-17 13:33:49 -0700 |
commit | 09fb30e5e91d9f2ed622db6b616084ce1d073384 (patch) | |
tree | 03232db64f38a3247365d5285283eb23f067f673 /include/sys/Makefile.am | |
parent | 46ab35954c7a7e4dc6591593c14f672bceee042d (diff) |
Linux 4.6 compat: Fall back to d_prune_aliases() if necessary
As of 4.6, the icache and dcache LRUs are memcg aware insofar as the
kernel's per-superblock shrinker is concerned. The effect is that dcache
or icache entries added by a task in a non-root memcg won't be scanned
by the shrinker in the context of the root (or NULL) memcg. This defeats
the attempts by zfs_sb_prune() to unpin buffers and can allow metadata to
grow uncontrollably. This patch reverts to the d_prune_aliaes() method
in case the kernel's per-superblock shrinker is not able to free anything.
Signed-off-by: Tim Chase <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes: #4726
Diffstat (limited to 'include/sys/Makefile.am')
0 files changed, 0 insertions, 0 deletions