diff options
| author | Johannes Weiner <[email protected]> | 2021-09-02 14:53:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-09-03 09:58:10 -0700 |
| commit | 16e2df2a05d46c983bf310b19432c5ca4684b2bc (patch) | |
| tree | e4b4696ec603a26a18c2c1733031efdc813ffe88 /tools/perf/scripts/python/bin | |
| parent | 3047250972ff935b1d7a0629fa3acb04c12dcc07 (diff) | |
fs: drop_caches: fix skipping over shadow cache inodes
When drop_caches truncates the page cache in an inode it also includes any
shadow entries for evicted pages. However, there is a preliminary check
on whether the inode has pages: if it has *only* shadow entries, it will
skip running truncation on the inode and leave it behind.
Fix the check to mapping_empty(), such that it runs truncation on any
inode that has cache entries at all.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Reported-by: Roman Gushchin <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions