• Home
  • Raw
  • Download

Lines Matching refs:ret

518 	int ret;  in dirty_background_ratio_handler()  local
520 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_ratio_handler()
521 if (ret == 0 && write) in dirty_background_ratio_handler()
523 return ret; in dirty_background_ratio_handler()
530 int ret; in dirty_background_bytes_handler() local
532 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_background_bytes_handler()
533 if (ret == 0 && write) in dirty_background_bytes_handler()
535 return ret; in dirty_background_bytes_handler()
543 int ret; in dirty_ratio_handler() local
545 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in dirty_ratio_handler()
546 if (ret == 0 && write && vm_dirty_ratio != old_ratio) { in dirty_ratio_handler()
550 return ret; in dirty_ratio_handler()
558 int ret; in dirty_bytes_handler() local
560 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in dirty_bytes_handler()
561 if (ret == 0 && write && vm_dirty_bytes != old_bytes) { in dirty_bytes_handler()
565 return ret; in dirty_bytes_handler()
677 int ret = 0; in bdi_set_min_ratio() local
681 ret = -EINVAL; in bdi_set_min_ratio()
688 ret = -EINVAL; in bdi_set_min_ratio()
693 return ret; in bdi_set_min_ratio()
698 int ret = 0; in bdi_set_max_ratio() local
705 ret = -EINVAL; in bdi_set_max_ratio()
712 return ret; in bdi_set_max_ratio()
1978 int ret; in dirty_writeback_centisecs_handler() local
1980 ret = proc_dointvec(table, write, buffer, length, ppos); in dirty_writeback_centisecs_handler()
1989 if (!ret && write && dirty_writeback_interval && in dirty_writeback_centisecs_handler()
1993 return ret; in dirty_writeback_centisecs_handler()
2162 int ret = 0; in write_cache_pages() local
2256 ret = error; in write_cache_pages()
2261 if (!ret) in write_cache_pages()
2262 ret = error; in write_cache_pages()
2291 return ret; in write_cache_pages()
2303 int ret = mapping->a_ops->writepage(page, wbc); in __writepage() local
2304 mapping_set_error(mapping, ret); in __writepage()
2305 return ret; in __writepage()
2322 int ret; in generic_writepages() local
2329 ret = write_cache_pages(mapping, wbc, __writepage, mapping); in generic_writepages()
2331 return ret; in generic_writepages()
2338 int ret; in do_writepages() local
2344 ret = mapping->a_ops->writepages(mapping, wbc); in do_writepages()
2346 ret = generic_writepages(mapping, wbc); in do_writepages()
2347 if ((ret != -ENOMEM) || (wbc->sync_mode != WB_SYNC_ALL)) in do_writepages()
2352 return ret; in do_writepages()
2369 int ret = 0; in write_one_page() local
2381 ret = mapping->a_ops->writepage(page, &wbc); in write_one_page()
2382 if (ret == 0) in write_one_page()
2389 if (!ret) in write_one_page()
2390 ret = filemap_check_errors(mapping); in write_one_page()
2391 return ret; in write_one_page()
2529 int ret; in redirty_page_for_writepage() local
2532 ret = __set_page_dirty_nobuffers(page); in redirty_page_for_writepage()
2534 return ret; in redirty_page_for_writepage()
2594 int ret; in set_page_dirty_lock() local
2597 ret = set_page_dirty(page); in set_page_dirty_lock()
2599 return ret; in set_page_dirty_lock()
2656 int ret = 0; in clear_page_dirty_for_io() local
2705 ret = 1; in clear_page_dirty_for_io()
2708 return ret; in clear_page_dirty_for_io()
2719 int ret; in test_clear_page_writeback() local
2729 ret = TestClearPageWriteback(page); in test_clear_page_writeback()
2730 if (ret) { in test_clear_page_writeback()
2747 ret = TestClearPageWriteback(page); in test_clear_page_writeback()
2755 if (ret) { in test_clear_page_writeback()
2761 return ret; in test_clear_page_writeback()
2767 int ret; in __test_set_page_writeback() local
2778 ret = TestSetPageWriteback(page); in __test_set_page_writeback()
2779 if (!ret) { in __test_set_page_writeback()
2803 ret = TestSetPageWriteback(page); in __test_set_page_writeback()
2805 if (!ret) { in __test_set_page_writeback()
2810 return ret; in __test_set_page_writeback()