Lines Matching +full:close +full:- +full:range

1 // SPDX-License-Identifier: GPL-2.0-only
66 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read()
84 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write()
110 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
113 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
118 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
121 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
126 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
129 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes()
142 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated()
145 close(fd); in range_is_populated()
156 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_populated()
159 close(fd); in range_is_not_populated()
175 "range initially not populated\n"); in test_populate_read()
180 "range is populated\n"); in test_populate_read()
197 "range initially not populated\n"); in test_populate_write()
202 "range is populated\n"); in test_populate_write()
214 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_softdirty()
217 close(fd); in range_is_softdirty()
228 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_softdirty()
231 close(fd); in range_is_not_softdirty()
250 "range is not softdirty\n"); in test_softdirty()
256 "range is not softdirty\n"); in test_softdirty()
262 "range is softdirty\n"); in test_softdirty()
270 * There is no way to check if the kernel supports soft-dirty, other in system_has_softdirty()
275 * soft-dirty. So for now, let's just use the arch as a corse guide. in system_has_softdirty()