Searched refs:nr_mounts (Results 1 – 10 of 10) sorted by relevance
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | listmount_test.c | 28 ssize_t nr_mounts; in TEST() local 30 nr_mounts = listmount(LSMT_ROOT, 0, last_mnt_id, in TEST() 32 ASSERT_GE(nr_mounts, 0); in TEST() 33 if (nr_mounts == 0) in TEST() 36 for (size_t cur = 0; cur < nr_mounts; cur++) { in TEST() 37 if (cur < nr_mounts - 1) in TEST() 50 ssize_t nr_mounts; in TEST() local 52 nr_mounts = listmount(LSMT_ROOT, 0, last_mnt_id, in TEST() 54 ASSERT_GE(nr_mounts, 0); in TEST() 55 if (nr_mounts == 0) in TEST() [all …]
|
| H A D | statmount_test_ns.c | 158 uint64_t nr_mounts; in validate_external_listmount() local 166 nr_mounts = listmount(LSMT_ROOT, mnt_ns_id, 0, list, 256, 0); in validate_external_listmount() 167 if (nr_mounts == (uint64_t)-1) { in validate_external_listmount() 172 if (nr_mounts != child_nr_mounts) { in validate_external_listmount() 173 ksft_print_msg("listmount results is %zi != %zi\n", nr_mounts, in validate_external_listmount() 179 for (int i = 0; i < nr_mounts; i++) { in validate_external_listmount() 207 uint64_t nr_mounts; in test_listmount_ns() local 236 nr_mounts = listmount(LSMT_ROOT, 0, 0, list, 256, 0); in test_listmount_ns() 237 if (nr_mounts == (uint64_t)-1) { in test_listmount_ns() 246 if (write(child_ready_pipe[1], &nr_mounts, sizeof(nr_mounts)) != in test_listmount_ns() [all …]
|
| /linux/samples/vfs/ |
| H A D | test-list-all-mounts.c | 91 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 93 ssize_t nr_mounts; in main() local 95 nr_mounts = sys_listmount(LSMT_ROOT, last_mnt_id, in main() 98 if (nr_mounts <= 0) { in main() 102 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 115 info.nr_mounts, (uint64_t)info.mnt_ns_id); in main() 119 for (size_t cur = 0; cur < nr_mounts; cur++) { in main()
|
| H A D | samples-vfs.h | 76 __u32 nr_mounts; member
|
| /linux/fs/ |
| H A D | nsfs.c | 157 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 159 if (kinfo->nr_mounts) in copy_ns_info_to_user() 160 kinfo->nr_mounts--; in copy_ns_info_to_user()
|
| H A D | mount.h | 27 unsigned int nr_mounts; /* # of mounts in the namespace */ member
|
| H A D | namespace.c | 1155 n->nr_mounts += n->pending_mounts; in commit_tree() 1805 ns->nr_mounts--; in umount_tree() 2471 if (ns->nr_mounts >= max) in count_mounts() 2473 max -= ns->nr_mounts; in count_mounts() 3043 ns->nr_mounts++; in get_detached_copy() 4156 new_ns->nr_mounts++; in copy_mnt_ns() 4193 ns->nr_mounts++; in mount_subtree() 4371 ns->nr_mounts = 1; in SYSCALL_DEFINE3() 6010 init_mnt_ns.nr_mounts = 1; in init_mount_tree()
|
| /linux/tools/include/uapi/linux/ |
| H A D | nsfs.h | 30 __u32 nr_mounts; member
|
| /linux/include/uapi/linux/ |
| H A D | nsfs.h | 30 __u32 nr_mounts; member
|
| /linux/tools/testing/selftests/filesystems/nsfs/ |
| H A D | iterate_mntns.c | 22 __u32 nr_mounts; member
|