Lines Matching refs:error
78 int error; in xfarray_create() local
82 error = xfile_create(description, 0, &xfile); in xfarray_create()
83 if (error) in xfarray_create()
84 return error; in xfarray_create()
86 error = -ENOMEM; in xfarray_create()
104 error = -ENOMEM; in xfarray_create()
117 return error; in xfarray_create()
150 int error; in xfarray_is_unset() local
155 error = xfile_obj_load(array->xfile, temp, array->obj_size, pos); in xfarray_is_unset()
156 if (!error && xfarray_element_is_null(array, temp)) in xfarray_is_unset()
173 int error; in xfarray_unset() local
187 error = xfile_obj_store(array->xfile, temp, array->obj_size, pos); in xfarray_unset()
188 if (error) in xfarray_unset()
189 return error; in xfarray_unset()
242 int error; in xfarray_store_anywhere() local
248 error = xfile_obj_load(array->xfile, temp, array->obj_size, in xfarray_store_anywhere()
250 if (error || !xfarray_element_is_null(array, temp)) in xfarray_store_anywhere()
253 error = xfile_obj_store(array->xfile, ptr, array->obj_size, in xfarray_store_anywhere()
255 if (error) in xfarray_store_anywhere()
256 return error; in xfarray_store_anywhere()
346 int error; in xfarray_load_next() local
356 error = xfarray_find_data(array, &cur, &pos); in xfarray_load_next()
357 if (error) in xfarray_load_next()
358 return error; in xfarray_load_next()
359 error = xfarray_load(array, cur, rec); in xfarray_load_next()
360 if (error) in xfarray_load_next()
361 return error; in xfarray_load_next()
499 int *error) in xfarray_sort_terminated() argument
510 if (*error == 0) in xfarray_sort_terminated()
511 *error = -EINTR; in xfarray_sort_terminated()
550 int error; in xfarray_isort() local
555 error = xfile_obj_load(si->array->xfile, scratch, len, lo_pos); in xfarray_isort()
556 if (error) in xfarray_isort()
557 return error; in xfarray_isort()
573 int error; in xfarray_sort_get_page() local
575 error = xfile_get_page(si->array->xfile, pos, len, &si->xfpage); in xfarray_sort_get_page()
576 if (error) in xfarray_sort_get_page()
577 return error; in xfarray_sort_get_page()
630 int error = 0; in xfarray_pagesort() local
635 error = xfarray_sort_get_page(si, lo_pos, len); in xfarray_pagesort()
636 if (error) in xfarray_pagesort()
637 return error; in xfarray_pagesort()
704 int error; in xfarray_qsort_pivot() local
731 error = xfarray_sort_load(si, *idxp, recp); in xfarray_qsort_pivot()
732 if (error) in xfarray_qsort_pivot()
733 return error; in xfarray_qsort_pivot()
743 error = xfarray_load_next(si->array, &idx, recp); in xfarray_qsort_pivot()
744 if (error) in xfarray_qsort_pivot()
745 return error; in xfarray_qsort_pivot()
782 error = xfarray_sort_store(si, lo, pivot); in xfarray_qsort_pivot()
783 if (error) in xfarray_qsort_pivot()
784 return error; in xfarray_qsort_pivot()
845 int error = 0; in xfarray_sort_load_cached() local
854 error = xfarray_sort_put_page(si); in xfarray_sort_load_cached()
855 if (error) in xfarray_sort_load_cached()
856 return error; in xfarray_sort_load_cached()
858 if (xfarray_sort_terminated(si, &error)) in xfarray_sort_load_cached()
859 return error; in xfarray_sort_load_cached()
868 error = xfarray_sort_put_page(si); in xfarray_sort_load_cached()
869 if (error) in xfarray_sort_load_cached()
870 return error; in xfarray_sort_load_cached()
878 if (xfarray_sort_terminated(si, &error)) in xfarray_sort_load_cached()
879 return error; in xfarray_sort_load_cached()
881 error = xfarray_sort_get_page(si, startpage << PAGE_SHIFT, in xfarray_sort_load_cached()
883 if (error) in xfarray_sort_load_cached()
884 return error; in xfarray_sort_load_cached()
940 int error = 0; in xfarray_sort() local
947 error = xfarray_sortinfo_alloc(array, cmp_fn, flags, &si); in xfarray_sort()
948 if (error) in xfarray_sort()
949 return error; in xfarray_sort()
971 error = xfarray_pagesort(si, lo, hi); in xfarray_sort()
972 if (error) in xfarray_sort()
980 error = xfarray_isort(si, lo, hi); in xfarray_sort()
981 if (error) in xfarray_sort()
988 error = xfarray_qsort_pivot(si, lo, hi); in xfarray_sort()
989 if (error) in xfarray_sort()
1002 error = xfarray_sort_load_cached(si, hi, scratch); in xfarray_sort()
1003 if (error) in xfarray_sort()
1008 error = xfarray_sort_load_cached(si, hi, in xfarray_sort()
1010 if (error) in xfarray_sort()
1013 error = xfarray_sort_put_page(si); in xfarray_sort()
1014 if (error) in xfarray_sort()
1017 if (xfarray_sort_terminated(si, &error)) in xfarray_sort()
1022 error = xfarray_sort_store(si, lo++, scratch); in xfarray_sort()
1023 if (error) in xfarray_sort()
1031 error = xfarray_sort_load_cached(si, lo, scratch); in xfarray_sort()
1032 if (error) in xfarray_sort()
1037 error = xfarray_sort_load_cached(si, lo, in xfarray_sort()
1039 if (error) in xfarray_sort()
1042 error = xfarray_sort_put_page(si); in xfarray_sort()
1043 if (error) in xfarray_sort()
1046 if (xfarray_sort_terminated(si, &error)) in xfarray_sort()
1051 error = xfarray_sort_store(si, hi--, scratch); in xfarray_sort()
1052 if (error) in xfarray_sort()
1056 if (xfarray_sort_terminated(si, &error)) in xfarray_sort()
1066 error = xfarray_sort_store(si, lo, pivot); in xfarray_sort()
1067 if (error) in xfarray_sort()
1071 error = xfarray_qsort_push(si, si_lo, si_hi, lo, hi); in xfarray_sort()
1072 if (error) in xfarray_sort()
1075 if (xfarray_sort_terminated(si, &error)) in xfarray_sort()
1080 trace_xfarray_sort_stats(si, error); in xfarray_sort()
1082 return error; in xfarray_sort()