• Home
  • Raw
  • Download

Lines Matching refs:ret

236 static void afs_vnode_status_update_failed(struct afs_vnode *vnode, int ret)  in afs_vnode_status_update_failed()  argument
238 _enter("{%x:%u},%d", vnode->fid.vid, vnode->fid.vnode, ret); in afs_vnode_status_update_failed()
244 if (ret == -ENOENT) { in afs_vnode_status_update_failed()
270 int ret; in afs_vnode_fetch_status() local
361 ret = afs_fs_fetch_file_status(server, key, vnode, NULL, in afs_vnode_fetch_status()
364 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_fetch_status()
367 if (ret == 0) { in afs_vnode_fetch_status()
374 _debug("failed [%d]", ret); in afs_vnode_fetch_status()
375 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_fetch_status()
380 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_fetch_status()
381 return ret; in afs_vnode_fetch_status()
400 int ret; in afs_vnode_fetch_data() local
424 ret = afs_fs_fetch_data(server, key, vnode, offset, length, in afs_vnode_fetch_data()
427 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_fetch_data()
430 if (ret == 0) { in afs_vnode_fetch_data()
434 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_fetch_data()
437 _leave(" = %d", ret); in afs_vnode_fetch_data()
438 return ret; in afs_vnode_fetch_data()
457 int ret; in afs_vnode_create() local
480 ret = afs_fs_create(server, key, vnode, name, mode, newfid, in afs_vnode_create()
483 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_create()
486 if (ret == 0) { in afs_vnode_create()
490 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_create()
494 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_create()
495 return ret; in afs_vnode_create()
513 int ret; in afs_vnode_remove() local
536 ret = afs_fs_remove(server, key, vnode, name, isdir, in afs_vnode_remove()
539 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_remove()
542 if (ret == 0) { in afs_vnode_remove()
546 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_remove()
549 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_remove()
550 return ret; in afs_vnode_remove()
568 int ret; in afs_vnode_link() local
598 ret = afs_fs_link(server, key, dvnode, vnode, name, in afs_vnode_link()
601 } while (!afs_volume_release_fileserver(dvnode, server, ret)); in afs_vnode_link()
604 if (ret == 0) { in afs_vnode_link()
609 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_link()
610 afs_vnode_status_update_failed(dvnode, ret); in afs_vnode_link()
613 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_link()
614 return ret; in afs_vnode_link()
639 int ret; in afs_vnode_symlink() local
662 ret = afs_fs_symlink(server, key, vnode, name, content, in afs_vnode_symlink()
665 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_symlink()
668 if (ret == 0) { in afs_vnode_symlink()
672 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_symlink()
676 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_symlink()
677 return ret; in afs_vnode_symlink()
698 int ret; in afs_vnode_rename() local
732 ret = afs_fs_rename(server, key, orig_dvnode, orig_name, in afs_vnode_rename()
735 } while (!afs_volume_release_fileserver(orig_dvnode, server, ret)); in afs_vnode_rename()
738 if (ret == 0) { in afs_vnode_rename()
744 afs_vnode_status_update_failed(orig_dvnode, ret); in afs_vnode_rename()
746 afs_vnode_status_update_failed(new_dvnode, ret); in afs_vnode_rename()
749 _leave(" = %d [cnt %d]", ret, orig_dvnode->update_cnt); in afs_vnode_rename()
750 return ret; in afs_vnode_rename()
775 int ret; in afs_vnode_store_data() local
798 ret = afs_fs_store_data(server, wb, first, last, offset, to, in afs_vnode_store_data()
801 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_store_data()
804 if (ret == 0) { in afs_vnode_store_data()
808 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_store_data()
811 _leave(" = %d", ret); in afs_vnode_store_data()
812 return ret; in afs_vnode_store_data()
829 int ret; in afs_vnode_setattr() local
851 ret = afs_fs_setattr(server, key, vnode, attr, &afs_sync_call); in afs_vnode_setattr()
853 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_setattr()
856 if (ret == 0) { in afs_vnode_setattr()
860 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_setattr()
863 _leave(" = %d", ret); in afs_vnode_setattr()
864 return ret; in afs_vnode_setattr()
881 int ret; in afs_vnode_get_volume_status() local
898 ret = afs_fs_get_volume_status(server, key, vnode, vs, &afs_sync_call); in afs_vnode_get_volume_status()
900 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_get_volume_status()
903 if (ret == 0) in afs_vnode_get_volume_status()
906 _leave(" = %d", ret); in afs_vnode_get_volume_status()
907 return ret; in afs_vnode_get_volume_status()
920 int ret; in afs_vnode_set_lock() local
937 ret = afs_fs_set_lock(server, key, vnode, type, &afs_sync_call); in afs_vnode_set_lock()
939 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_set_lock()
942 if (ret == 0) in afs_vnode_set_lock()
945 _leave(" = %d", ret); in afs_vnode_set_lock()
946 return ret; in afs_vnode_set_lock()
958 int ret; in afs_vnode_extend_lock() local
975 ret = afs_fs_extend_lock(server, key, vnode, &afs_sync_call); in afs_vnode_extend_lock()
977 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_extend_lock()
980 if (ret == 0) in afs_vnode_extend_lock()
983 _leave(" = %d", ret); in afs_vnode_extend_lock()
984 return ret; in afs_vnode_extend_lock()
996 int ret; in afs_vnode_release_lock() local
1013 ret = afs_fs_release_lock(server, key, vnode, &afs_sync_call); in afs_vnode_release_lock()
1015 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_release_lock()
1018 if (ret == 0) in afs_vnode_release_lock()
1021 _leave(" = %d", ret); in afs_vnode_release_lock()
1022 return ret; in afs_vnode_release_lock()