Skip to content

selftests: cachestat: fix run on older kernels

Andre Przywara linux-kselftest linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-hotfixes-stable] selftests-cachestat-catch-failing-fsync-test-on-tmpfs.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied 2/2
  2. v13 patches 9 repliesSuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests: cachestat: test for cachestat availabilitytools/testing/selftests/cachestat/test_cachestat.c+19 -10 repliesApplied
2/2selftests: cachestat: catch failing fsync test on tmpfstools/testing/selftests/cachestat/test_cachestat.c+47 -152 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNhat Pham
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] selftests: cachestat: fix run on older kernels

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(-)
Signature · 1 line
2.25.1