linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] selftests: cachestat: fix run on older kernels
@ 2023-08-21 16:05 Andre Przywara
  2023-08-21 16:05 ` [PATCH v2 1/2] selftests: cachestat: test for cachestat availability Andre Przywara
  2023-08-21 16:05 ` [PATCH v2 2/2] selftests: cachestat: catch failing fsync test on tmpfs Andre Przywara
  0 siblings, 2 replies; 5+ messages in thread
From: Andre Przywara @ 2023-08-21 16:05 UTC (permalink / raw)
  To: Shuah Khan, Nhat Pham, Johannes Weiner
  Cc: linux-kselftest, linux-mm, linux-kernel

I ran all kernel selftests on some test machine, and stumbled upon
cachestat failing (among others).
These patches fix the run on older kernels and when the current
directory is on a tmpfs instance.

I dropped the first two fix patches from v1, since Shuah applied those
already. [PATCH v2 1/2] is almost the same as [PATCH 3/3] from v1, but
using the proper skip function from kselftest.h. I am not sure if Shuah
applied that already, if yes, it's not a big problem, the output is the
same.

Patch 2/2 implements the tmpfs detection that Nhat suggested the last
time (many thanks for pointing me to statfs and the magics!).

Cheers,
Andre

Andre Przywara (2):
  selftests: cachestat: test for cachestat availability
  selftests: cachestat: catch failing fsync test on tmpfs

 .../selftests/cachestat/test_cachestat.c      | 80 +++++++++++++++----
 1 file changed, 65 insertions(+), 15 deletions(-)

-- 
2.25.1



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

end of thread, other threads:[~2023-08-22 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-21 16:05 [PATCH v2 0/2] selftests: cachestat: fix run on older kernels Andre Przywara
2023-08-21 16:05 ` [PATCH v2 1/2] selftests: cachestat: test for cachestat availability Andre Przywara
2023-08-21 16:05 ` [PATCH v2 2/2] selftests: cachestat: catch failing fsync test on tmpfs Andre Przywara
2023-08-22 15:55   ` Nhat Pham
2023-08-22 16:58     ` Nhat Pham

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