Searched refs:nr_mounts (Results 1 – 8 of 8) 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 in TEST() [all...] |
| H A D | statmount_test_ns.c | 228 uint64_t nr_mounts; in test_listmount_ns() 236 nr_mounts = listmount(LSMT_ROOT, mnt_ns_id, 0, list, 256, 0); in test_listmount_ns() 237 if (nr_mounts == (uint64_t)-1) { in test_listmount_ns() 242 if (nr_mounts != child_nr_mounts) { in test_listmount_ns() 244 (unsigned long long)nr_mounts, in test_listmount_ns() 250 for (int i = 0; i < nr_mounts; i++) { in test_listmount_ns() 278 uint64_t nr_mounts; in main() 307 nr_mounts = listmount(LSMT_ROOT, 0, 0, list, 256, 0); 308 if (nr_mounts == (uint64_t)-1) { 317 if (write(child_ready_pipe[1], &nr_mounts, sizeo 158 uint64_t nr_mounts; validate_external_listmount() local 207 uint64_t nr_mounts; test_listmount_ns() local [all...] |
| /linux/tools/testing/selftests/filesystems/open_tree_ns/ |
| H A D | open_tree_ns_test.c | 82 ssize_t nr_mounts; in dump_mounts() local 84 nr_mounts = listmount(LSMT_ROOT, mnt_ns_id, 0, list, 256, 0); in dump_mounts() 85 if (nr_mounts < 0) { in dump_mounts() 91 (unsigned long long)mnt_ns_id, nr_mounts); in dump_mounts() 93 for (ssize_t i = 0; i < nr_mounts; i++) { in dump_mounts() 226 ssize_t nr_mounts; in TEST_F() local 251 nr_mounts = listmount(LSMT_ROOT, new_ns_id, 0, list, 256, 0); in TEST_F() 252 ASSERT_GE(nr_mounts, 0) { in TEST_F() 257 ASSERT_GE(nr_mounts, variant->min_mounts); in TEST_F() 258 TH_LOG("Namespace contains %zd mounts", nr_mounts); in TEST_F() [all …]
|
| /linux/fs/ |
| H A D | nsfs.c | 162 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 164 if (kinfo->nr_mounts) in copy_ns_info_to_user() 165 kinfo->nr_mounts--; in copy_ns_info_to_user()
|
| H A D | mount.h | 31 unsigned int nr_mounts; /* # of mounts in the namespace */ member
|
| H A D | namespace.c | 1229 n->nr_mounts += n->pending_mounts; in commit_tree() 1867 ns->nr_mounts--; in umount_tree() 2547 if (ns->nr_mounts >= max) in count_mounts() 2549 max -= ns->nr_mounts; in count_mounts() 3180 ns->nr_mounts++; in get_detached_copy() 3295 new_ns->nr_mounts++; in create_new_namespace() 4468 new_ns->nr_mounts++; in copy_mnt_ns() 4480 new_ns->nr_mounts++; in copy_mnt_ns() 4518 ns->nr_mounts++; in mount_subtree() 4707 ns->nr_mounts in SYSCALL_DEFINE3() [all...] |
| /linux/tools/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
|