Lines Matching refs:error
883 int error; in __add_to_page_cache_locked() local
895 error = mem_cgroup_charge(page, NULL, gfp); in __add_to_page_cache_locked()
896 if (error) in __add_to_page_cache_locked()
897 goto error; in __add_to_page_cache_locked()
944 error = xas_error(&xas); in __add_to_page_cache_locked()
947 goto error; in __add_to_page_cache_locked()
952 error: in __add_to_page_cache_locked()
956 return error; in __add_to_page_cache_locked()
2385 int error; in filemap_read_page() local
2394 error = mapping->a_ops->readpage(file, page); in filemap_read_page()
2395 if (error) in filemap_read_page()
2396 return error; in filemap_read_page()
2398 error = wait_on_page_locked_killable(page); in filemap_read_page()
2399 if (error) in filemap_read_page()
2400 return error; in filemap_read_page()
2437 int error; in filemap_update_page() local
2447 error = -EAGAIN; in filemap_update_page()
2455 error = __lock_page_async(page, iocb->ki_waitq); in filemap_update_page()
2456 if (error) in filemap_update_page()
2460 error = AOP_TRUNCATED_PAGE; in filemap_update_page()
2464 error = 0; in filemap_update_page()
2468 error = -EAGAIN; in filemap_update_page()
2472 error = filemap_read_page(iocb->ki_filp, mapping, page); in filemap_update_page()
2478 if (error == AOP_TRUNCATED_PAGE) in filemap_update_page()
2480 return error; in filemap_update_page()
2488 int error; in filemap_create_page() local
2507 error = add_to_page_cache_lru(page, mapping, index, in filemap_create_page()
2509 if (error == -EEXIST) in filemap_create_page()
2510 error = AOP_TRUNCATED_PAGE; in filemap_create_page()
2511 if (error) in filemap_create_page()
2512 goto error; in filemap_create_page()
2514 error = filemap_read_page(file, mapping, page); in filemap_create_page()
2515 if (error) in filemap_create_page()
2516 goto error; in filemap_create_page()
2521 error: in filemap_create_page()
2524 return error; in filemap_create_page()
2619 int i, error = 0; in filemap_read() local
2643 error = filemap_get_pages(iocb, iter, &pvec); in filemap_read()
2644 if (error < 0) in filemap_read()
2714 error = -EFAULT; in filemap_read()
2722 } while (iov_iter_count(iter) && iocb->ki_pos < isize && !error); in filemap_read()
2726 return already_read ? already_read : error; in filemap_read()
3065 int error; in filemap_fault() local
3232 error = filemap_read_page(file, mapping, page); in filemap_fault()
3237 if (!error || error == AOP_TRUNCATED_PAGE) in filemap_fault()