Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
a3322868 2367fab5

+76
+1
tools/testing/selftests/Makefile
··· 48 48 ifneq (1, $(quicktest)) 49 49 TARGETS += timers 50 50 endif 51 + TARGETS += tmpfs 51 52 TARGETS += user 52 53 TARGETS += vm 53 54 TARGETS += x86
+1
tools/testing/selftests/tmpfs/.gitignore
··· 1 + /bug-link-o-tmpfile
+7
tools/testing/selftests/tmpfs/Makefile
··· 1 + CFLAGS += -Wall -O2 2 + CFLAGS += -D_GNU_SOURCE 3 + 4 + TEST_GEN_PROGS := 5 + TEST_GEN_PROGS += bug-link-o-tmpfile 6 + 7 + include ../lib.mk