diff options
author | 2015-09-08 15:03:33 -0700 | |
---|---|---|
committer | 2015-09-08 15:35:28 -0700 | |
commit | 44a30220bc0a171c010e8df63d144655abdafe61 (patch) | |
tree | c3f29c56cdf7838b0018f012c9b772a6a4a65a5f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mm/memblock.c: rename local variable of memblock_type to 'type' (diff) | |
download | linux-dev-44a30220bc0a171c010e8df63d144655abdafe61.tar.xz linux-dev-44a30220bc0a171c010e8df63d144655abdafe61.zip |
shmem: recalculate file inode when fstat
Shmem uses shmem_recalc_inode to update i_blocks when it allocates page,
undoes range or swaps. But mm can drop clean page without notifying
shmem. This makes fstat sometimes return out-of-date block size.
The problem can be partially solved when we add
inode_operations->getattr which calls shmem_recalc_inode to update
i_blocks for fstat.
shmem_recalc_inode also updates counter used by statfs and
vm_committed_as. For them the situation is not changed. They still
suffer from the discrepancy after dropping clean page and before the
function is called by aforementioned triggers.
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions