Searched refs:nr_mounts (Results 1 – 9 of 9) sorted by relevance
| /linux-6.15/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 54 ASSERT_GE(nr_mounts, 0); in TEST() 55 if (nr_mounts == 0) in TEST() 58 for (size_t cur = 0; cur < nr_mounts; cur++) { in TEST() [all …]
|
| H A D | statmount_test_ns.c | 234 uint64_t nr_mounts; in validate_external_listmount() local 243 if (nr_mounts == (uint64_t)-1) { in validate_external_listmount() 248 if (nr_mounts != child_nr_mounts) { in validate_external_listmount() 255 for (int i = 0; i < nr_mounts; i++) { in validate_external_listmount() 283 uint64_t nr_mounts; in test_listmount_ns() local 313 if (nr_mounts == (uint64_t)-1) { in test_listmount_ns() 322 if (write(child_ready_pipe[1], &nr_mounts, sizeof(nr_mounts)) != in test_listmount_ns() 323 sizeof(nr_mounts)) in test_listmount_ns() 334 if (read(child_ready_pipe[0], &nr_mounts, sizeof(nr_mounts)) != in test_listmount_ns() 335 sizeof(nr_mounts)) in test_listmount_ns() [all …]
|
| /linux-6.15/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-6.15/fs/ |
| H A D | nsfs.c | 143 kinfo->nr_mounts = READ_ONCE(mnt_ns->nr_mounts); in copy_ns_info_to_user() 145 if (kinfo->nr_mounts) in copy_ns_info_to_user() 146 kinfo->nr_mounts--; in copy_ns_info_to_user()
|
| H A D | mount.h | 35 unsigned int nr_mounts; /* # of mounts in the namespace */ member
|
| H A D | namespace.c | 1218 n->nr_mounts += n->pending_mounts; in commit_tree() 1904 ns->nr_mounts--; in umount_tree() 2589 if (ns->nr_mounts >= max) in count_mounts() 2591 max -= ns->nr_mounts; in count_mounts() 3137 ns->nr_mounts++; in open_detached_copy() 4343 new_ns->nr_mounts++; in copy_mnt_ns() 4387 ns->nr_mounts++; in mount_subtree() 4565 ns->nr_mounts = 1; in SYSCALL_DEFINE3() 6188 ns->nr_mounts = 1; in init_mount_tree()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | nsfs.h | 32 __u32 nr_mounts; member
|
| /linux-6.15/tools/testing/selftests/filesystems/nsfs/ |
| H A D | iterate_mntns.c | 22 __u32 nr_mounts; member
|