mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] ovl: make cachestat() work
@ 2026-06-23 11:14 Pavel Tikhomirov
  2026-06-23 11:14 ` [PATCH 1/3] fs, mm: add ->cachestat() file operation Pavel Tikhomirov
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Pavel Tikhomirov @ 2026-06-23 11:14 UTC (permalink / raw)
  To: Miklos Szeredi, Amir Goldstein
  Cc: Alexander Viro, Christian Brauner, Jan Kara,
	Matthew Wilcox (Oracle),
	Andrew Morton, Nhat Pham, Johannes Weiner, Shuah Khan,
	linux-unionfs, linux-kernel, linux-fsdevel, linux-mm,
	linux-kselftest, Pavel Tikhomirov

We were using cachestat() for our internal Virtuozzo cache related tests
and I saw that test behaves wrong on overlayfs, syscall returns all
zeroes instead of any meaningful cache statistics there. Let's fix it
similar to what was done for fadvise().

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>

Pavel Tikhomirov (3):
  fs, mm: add ->cachestat() file operation
  ovl: support cachestat() syscall on overlayfs files
  selftests/cachestat: add an overlayfs test case

 fs/overlayfs/file.c                           | 18 +++++
 include/linux/fs.h                            | 10 +++
 mm/filemap.c                                  | 43 +++++++++--
 .../selftests/cachestat/test_cachestat.c      | 75 ++++++++++++++++++-
 4 files changed, 137 insertions(+), 9 deletions(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2026-06-30 10:56 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23 11:14 [PATCH 0/3] ovl: make cachestat() work Pavel Tikhomirov
2026-06-23 11:14 ` [PATCH 1/3] fs, mm: add ->cachestat() file operation Pavel Tikhomirov
2026-06-23 13:48   ` Johannes Weiner
2026-06-23 14:55     ` Pavel Tikhomirov
2026-06-23 15:34       ` Amir Goldstein
2026-06-24 11:59         ` Pavel Tikhomirov
2026-06-24 14:11           ` Amir Goldstein
2026-06-25 10:36         ` Christian Brauner
2026-06-26 15:18           ` Amir Goldstein
2026-06-30  7:55             ` Christian Brauner
2026-06-30  9:45               ` Pavel Tikhomirov
2026-06-30 10:56               ` Amir Goldstein
2026-06-23 16:01   ` Nhat Pham
2026-06-24 11:46     ` Pavel Tikhomirov
2026-06-23 11:14 ` [PATCH 2/3] ovl: support cachestat() syscall on overlayfs files Pavel Tikhomirov
2026-06-23 17:12   ` Nhat Pham
2026-06-24 11:45     ` Pavel Tikhomirov
2026-06-24 14:16       ` Amir Goldstein
2026-06-24 19:06         ` Nhat Pham
2026-06-25 12:53           ` Matthew Wilcox
2026-06-25 16:12             ` Nhat Pham
2026-06-23 11:14 ` [PATCH 3/3] selftests/cachestat: add an overlayfs test case Pavel Tikhomirov
2026-06-23 16:13   ` Nhat Pham
2026-06-24 12:22     ` Pavel Tikhomirov
2026-06-24 20:50 ` [PATCH 0/3] ovl: make cachestat() work Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®