Lines Matching refs:status
92 int status; in nfs4_setup_state_renewal() local
102 status = nfs4_proc_get_lease_time(clp, &fsinfo); in nfs4_setup_state_renewal()
103 if (status == 0) { in nfs4_setup_state_renewal()
108 return status; in nfs4_setup_state_renewal()
118 int status; in nfs4_init_clientid() local
127 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs4_init_clientid()
128 if (status != 0) in nfs4_init_clientid()
134 status = nfs4_proc_setclientid_confirm(clp, &clid, cred); in nfs4_init_clientid()
135 if (status != 0) in nfs4_init_clientid()
140 return status; in nfs4_init_clientid()
166 int status; in nfs40_discover_server_trunking() local
172 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs40_discover_server_trunking()
173 if (status != 0) in nfs40_discover_server_trunking()
178 status = nfs40_walk_client_list(clp, result, cred); in nfs40_discover_server_trunking()
179 if (status == 0) { in nfs40_discover_server_trunking()
189 return status; in nfs40_discover_server_trunking()
321 int status; in nfs41_init_clientid() local
325 status = nfs4_proc_exchange_id(clp, cred); in nfs41_init_clientid()
326 if (status != 0) in nfs41_init_clientid()
330 status = nfs4_proc_create_session(clp, cred); in nfs41_init_clientid()
331 if (status != 0) in nfs41_init_clientid()
336 return status; in nfs41_init_clientid()
356 int status; in nfs41_discover_server_trunking() local
358 status = nfs4_proc_exchange_id(clp, cred); in nfs41_discover_server_trunking()
359 if (status != NFS4_OK) in nfs41_discover_server_trunking()
360 return status; in nfs41_discover_server_trunking()
362 status = nfs41_walk_client_list(clp, result, cred); in nfs41_discover_server_trunking()
363 if (status < 0) in nfs41_discover_server_trunking()
364 return status; in nfs41_discover_server_trunking()
380 status = nfs_wait_client_init_complete(clp); in nfs41_discover_server_trunking()
381 if (status < 0) in nfs41_discover_server_trunking()
383 return status; in nfs41_discover_server_trunking()
1116 static void nfs_increment_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_seqid() argument
1118 switch (status) { in nfs_increment_seqid()
1145 void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_open_seqid() argument
1153 if (status == -NFS4ERR_BAD_SEQID) in nfs_increment_open_seqid()
1156 nfs_increment_seqid(status, seqid); in nfs_increment_open_seqid()
1164 void nfs_increment_lock_seqid(int status, struct nfs_seqid *seqid) in nfs_increment_lock_seqid() argument
1167 nfs_increment_seqid(status, seqid); in nfs_increment_lock_seqid()
1173 int status = 0; in nfs_wait_on_sequence() local
1185 status = -EAGAIN; in nfs_wait_on_sequence()
1189 return status; in nfs_wait_on_sequence()
1495 int status = 0; in nfs4_reclaim_locks() local
1512 status = ops->recover_lock(state, fl); in nfs4_reclaim_locks()
1513 switch (status) { in nfs4_reclaim_locks()
1531 __func__, status); in nfs4_reclaim_locks()
1540 status = 0; in nfs4_reclaim_locks()
1551 return status; in nfs4_reclaim_locks()
1583 int status; in __nfs4_reclaim_open_state() local
1585 status = ops->recover_open(sp, state); in __nfs4_reclaim_open_state()
1586 if (status < 0) in __nfs4_reclaim_open_state()
1587 return status; in __nfs4_reclaim_open_state()
1589 status = nfs4_reclaim_locks(state, ops); in __nfs4_reclaim_open_state()
1590 if (status < 0) in __nfs4_reclaim_open_state()
1591 return status; in __nfs4_reclaim_open_state()
1604 return status; in __nfs4_reclaim_open_state()
1611 int status = 0; in nfs4_reclaim_open_state() local
1633 status = __nfs4_reclaim_open_state(sp, state, ops); in nfs4_reclaim_open_state()
1635 switch (status) { in nfs4_reclaim_open_state()
1637 if (status >= 0) { in nfs4_reclaim_open_state()
1641 printk(KERN_ERR "NFS: %s: unhandled error %d\n", __func__, status); in nfs4_reclaim_open_state()
1650 nfs4_state_mark_recovery_failed(state, status); in nfs4_reclaim_open_state()
1691 return status; in nfs4_reclaim_open_state()
1871 int status = 0; in nfs4_do_reclaim() local
1891 status = nfs4_reclaim_open_state(sp, ops); in nfs4_do_reclaim()
1892 if (status < 0) { in nfs4_do_reclaim()
1895 status = nfs4_recovery_handle_error(clp, status); in nfs4_do_reclaim()
1896 return (status != 0) ? status : -EAGAIN; in nfs4_do_reclaim()
1914 int status; in nfs4_check_lease() local
1922 status = -ENOKEY; in nfs4_check_lease()
1926 status = ops->renew_lease(clp, cred); in nfs4_check_lease()
1928 if (status == -ETIMEDOUT) { in nfs4_check_lease()
1933 return nfs4_recovery_handle_error(clp, status); in nfs4_check_lease()
1939 static int nfs4_handle_reclaim_lease_error(struct nfs_client *clp, int status) in nfs4_handle_reclaim_lease_error() argument
1941 switch (status) { in nfs4_handle_reclaim_lease_error()
1975 status, clp->cl_hostname); in nfs4_handle_reclaim_lease_error()
1976 return status; in nfs4_handle_reclaim_lease_error()
1979 dprintk("%s: handled error %d for server %s\n", __func__, status, in nfs4_handle_reclaim_lease_error()
1989 int status; in nfs4_establish_lease() local
1991 status = nfs4_begin_drain_session(clp); in nfs4_establish_lease()
1992 if (status != 0) in nfs4_establish_lease()
1993 return status; in nfs4_establish_lease()
1997 status = ops->establish_clid(clp, cred); in nfs4_establish_lease()
1999 if (status != 0) in nfs4_establish_lease()
2000 return status; in nfs4_establish_lease()
2011 int status; in nfs4_reclaim_lease() local
2013 status = nfs4_establish_lease(clp); in nfs4_reclaim_lease()
2014 if (status < 0) in nfs4_reclaim_lease()
2015 return nfs4_handle_reclaim_lease_error(clp, status); in nfs4_reclaim_lease()
2027 int status; in nfs4_purge_lease() local
2029 status = nfs4_establish_lease(clp); in nfs4_purge_lease()
2030 if (status < 0) in nfs4_purge_lease()
2031 return nfs4_handle_reclaim_lease_error(clp, status); in nfs4_purge_lease()
2051 int status, result; in nfs4_try_migration() local
2081 status = nfs4_begin_drain_session(clp); in nfs4_try_migration()
2082 if (status != 0) { in nfs4_try_migration()
2083 result = status; in nfs4_try_migration()
2087 status = nfs4_replace_transport(server, locations); in nfs4_try_migration()
2088 if (status != 0) { in nfs4_try_migration()
2090 __func__, status); in nfs4_try_migration()
2130 int status; in nfs4_handle_migration() local
2141 status = nfs4_try_migration(server, cred); in nfs4_handle_migration()
2142 if (status < 0) { in nfs4_handle_migration()
2144 return status; in nfs4_handle_migration()
2177 int status; in nfs4_handle_lease_moved() local
2186 status = nfs4_proc_fsid_present(inode, cred); in nfs4_handle_lease_moved()
2187 if (status != -NFS4ERR_MOVED) in nfs4_handle_lease_moved()
2220 int i, status; in nfs4_discover_server_trunking() local
2229 status = -ENOENT; in nfs4_discover_server_trunking()
2234 status = ops->detect_trunking(clp, result, cred); in nfs4_discover_server_trunking()
2236 switch (status) { in nfs4_discover_server_trunking()
2251 __func__, status); in nfs4_discover_server_trunking()
2265 status = -EPERM; in nfs4_discover_server_trunking()
2270 status = PTR_ERR(clnt); in nfs4_discover_server_trunking()
2283 status = -EPROTONOSUPPORT; in nfs4_discover_server_trunking()
2289 status = -EKEYEXPIRED; in nfs4_discover_server_trunking()
2293 __func__, status); in nfs4_discover_server_trunking()
2294 status = -EIO; in nfs4_discover_server_trunking()
2299 dprintk("NFS: %s: status = %d\n", __func__, status); in nfs4_discover_server_trunking()
2300 return status; in nfs4_discover_server_trunking()
2426 int status; in nfs4_reset_session() local
2430 status = nfs4_begin_drain_session(clp); in nfs4_reset_session()
2431 if (status != 0) in nfs4_reset_session()
2432 return status; in nfs4_reset_session()
2434 status = nfs4_proc_destroy_session(clp->cl_session, cred); in nfs4_reset_session()
2435 switch (status) { in nfs4_reset_session()
2443 status = 0; in nfs4_reset_session()
2447 status = nfs4_recovery_handle_error(clp, status); in nfs4_reset_session()
2452 status = nfs4_proc_create_session(clp, cred); in nfs4_reset_session()
2453 if (status) { in nfs4_reset_session()
2455 __func__, status, clp->cl_hostname); in nfs4_reset_session()
2456 status = nfs4_handle_reclaim_lease_error(clp, status); in nfs4_reset_session()
2464 return status; in nfs4_reset_session()
2506 int status = 0; in nfs4_state_manager() local
2514 status = nfs4_purge_lease(clp); in nfs4_state_manager()
2515 if (status < 0) in nfs4_state_manager()
2523 status = nfs4_reclaim_lease(clp); in nfs4_state_manager()
2524 if (status < 0) in nfs4_state_manager()
2532 status = nfs4_reset_session(clp); in nfs4_state_manager()
2535 if (status < 0) in nfs4_state_manager()
2543 status = nfs4_bind_conn_to_session(clp); in nfs4_state_manager()
2544 if (status < 0) in nfs4_state_manager()
2551 status = nfs4_check_lease(clp); in nfs4_state_manager()
2552 if (status < 0) in nfs4_state_manager()
2559 status = nfs4_handle_migration(clp); in nfs4_state_manager()
2560 if (status < 0) in nfs4_state_manager()
2566 status = nfs4_handle_lease_moved(clp); in nfs4_state_manager()
2567 if (status < 0) in nfs4_state_manager()
2574 status = nfs4_do_reclaim(clp, in nfs4_state_manager()
2576 if (status == -EAGAIN) in nfs4_state_manager()
2578 if (status < 0) in nfs4_state_manager()
2593 status = nfs4_do_reclaim(clp, in nfs4_state_manager()
2595 if (status == -EAGAIN) in nfs4_state_manager()
2597 if (status < 0) in nfs4_state_manager()
2626 clp->cl_hostname, -status); in nfs4_state_manager()