tmpfs: test link accounting with O_TMPFILE
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 5 Mar 2019 23:49:24 +0000 (15:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:20 +0000 (21:07 -0800)
commita33228682c2039f086823ac798242734ec0eb4e5
tree2212790f6cd14f29aba1a75bfeda20040d90c7f2
parent2367fab5b397bdd6cbba384e073a2e834b94bc36
tmpfs: test link accounting with O_TMPFILE

Mount tmpfs with "nr_inodes=3" for easy check.

Link: http://lkml.kernel.org/r/20190219215016.GA20084@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matej Kupljen <matej.kupljen@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/tmpfs/.gitignore [new file with mode: 0644]
tools/testing/selftests/tmpfs/Makefile [new file with mode: 0644]
tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c [new file with mode: 0644]