Lines Matching defs:error
28 #include <linux/error-injection.h>
404 * Return: %0 on success, negative error code otherwise.
453 * Return: %0 on success, negative error code otherwise.
542 * in the given range and wait for all of them. Check error status of
545 * Since the error status of the address space is cleared by this function,
547 * reporting the error.
549 * Return: error status of the address space.
567 * this function does not clear error status of the address space.
588 * refers to, in the given range and wait for all of them. Check error
591 * Since the error status of the file is advanced by this function,
593 * reporting the error.
595 * Return: error status of the address space vs. the file->f_wb_err cursor.
612 * does not clear error status of the address space.
618 * Return: error status of the address space.
647 * Return: error status of the address space.
658 * Even if the above returned error, the pages may be
688 * file_check_and_advance_wb_err - report wb error (if any) that was previously
690 * @file: struct file on which the error is being reported
701 * to it with the new value, then update the f_wb_err and return the error
702 * portion. The error at this point must be reported via proper channels
709 * Return: %0 on success, negative error code otherwise.
753 * Return: %0 on success, negative error code otherwise.
837 int error;
849 error = mem_cgroup_charge(page, current->mm, gfp);
850 if (error)
851 goto error;
900 error = xas_error(&xas);
903 goto error;
908 error:
912 return error;
926 * Return: %0 on success, negative error code otherwise.
2154 * CD/DVDs are error prone. When a medium error occurs, the driver may fail
2160 * read(R) => miss => readahead(R...B) => media error => frustrating retries
2183 * of the logic when it comes to error handling etc.
2187 * * negative error code if nothing was copied
2202 int error = 0;
2234 error = -EINTR;
2269 error = wait_on_page_locked_async(page,
2276 error = wait_on_page_locked_killable(page);
2278 if (unlikely(error))
2358 error = -EFAULT;
2370 error = lock_page_async(page, iocb->ki_waitq);
2372 error = lock_page_killable(page);
2374 if (unlikely(error))
2398 * A previous I/O error may have been due to temporary
2404 error = mapping->a_ops->readpage(filp, page);
2406 if (unlikely(error)) {
2407 if (error == AOP_TRUNCATED_PAGE) {
2409 error = 0;
2421 error = lock_page_async(page, iocb->ki_waitq);
2423 error = lock_page_killable(page);
2426 if (unlikely(error))
2439 error = -EIO;
2448 /* UHHUH! A synchronous read error occurred. Report it */
2459 error = -ENOMEM;
2462 error = add_to_page_cache_lru(page, mapping, index,
2464 if (error) {
2466 if (error == -EEXIST) {
2467 error = 0;
2476 error = -EAGAIN;
2484 return written ? written : error;
2507 * * negative error code (or 0 if IOCB_NOIO) if nothing was read
2548 * compressed extents, so if there was an error, or if
2718 int error;
2773 * that it's up-to-date. If not, it is going to be due to an error.
2811 error = mapping->a_ops->readpage(file, page);
2812 if (!error) {
2815 error = -EIO;
2821 if (!error || error == AOP_TRUNCATED_PAGE)
3042 * case b: Read/write error clearing the page uptodate status
3091 * A previous I/O error may have been due to temporary
3093 * Clear page error before actual read, PG_error will be
3398 * * negative error code if no data has been written at all
3435 * If generic_perform_write() returned a synchronous error
3437 * direct-written, or the error code if that was zero. Note
3484 * * negative error code if no data has been written at all of