Lines Matching refs:status
113 int status; in nfs4_make_rec_clidname() local
119 status = PTR_ERR(tfm); in nfs4_make_rec_clidname()
126 status = -ENOMEM; in nfs4_make_rec_clidname()
135 status = crypto_shash_digest(desc, clname->data, clname->len, in nfs4_make_rec_clidname()
140 if (status) in nfs4_make_rec_clidname()
145 status = 0; in nfs4_make_rec_clidname()
150 return status; in nfs4_make_rec_clidname()
205 int status; in nfsd4_create_clid_dir() local
213 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_create_clid_dir()
214 if (status) in nfsd4_create_clid_dir()
215 return legacy_recdir_name_error(clp, status); in nfsd4_create_clid_dir()
217 status = nfs4_save_creds(&original_cred); in nfsd4_create_clid_dir()
218 if (status < 0) in nfsd4_create_clid_dir()
221 status = mnt_want_write_file(nn->rec_file); in nfsd4_create_clid_dir()
222 if (status) in nfsd4_create_clid_dir()
231 status = PTR_ERR(dentry); in nfsd4_create_clid_dir()
244 status = vfs_mkdir(d_inode(dir), dentry, S_IRWXU); in nfsd4_create_clid_dir()
249 if (status == 0) { in nfsd4_create_clid_dir()
257 " and is writeable", status, in nfsd4_create_clid_dir()
306 int status; in nfsd4_list_rec_dir() local
308 status = nfs4_save_creds(&original_cred); in nfsd4_list_rec_dir()
309 if (status < 0) in nfsd4_list_rec_dir()
310 return status; in nfsd4_list_rec_dir()
312 status = vfs_llseek(nn->rec_file, 0, SEEK_SET); in nfsd4_list_rec_dir()
313 if (status < 0) { in nfsd4_list_rec_dir()
315 return status; in nfsd4_list_rec_dir()
318 status = iterate_dir(nn->rec_file, &ctx.ctx); in nfsd4_list_rec_dir()
322 if (!status) { in nfsd4_list_rec_dir()
326 status = PTR_ERR(dentry); in nfsd4_list_rec_dir()
329 status = f(dir, dentry, nn); in nfsd4_list_rec_dir()
343 return status; in nfsd4_list_rec_dir()
350 int status; in nfsd4_unlink_clid_dir() local
358 status = PTR_ERR(dentry); in nfsd4_unlink_clid_dir()
361 status = -ENOENT; in nfsd4_unlink_clid_dir()
364 status = vfs_rmdir(d_inode(dir), dentry); in nfsd4_unlink_clid_dir()
369 return status; in nfsd4_unlink_clid_dir()
397 int status; in nfsd4_remove_clid_dir() local
403 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_remove_clid_dir()
404 if (status) in nfsd4_remove_clid_dir()
405 return legacy_recdir_name_error(clp, status); in nfsd4_remove_clid_dir()
407 status = mnt_want_write_file(nn->rec_file); in nfsd4_remove_clid_dir()
408 if (status) in nfsd4_remove_clid_dir()
412 status = nfs4_save_creds(&original_cred); in nfsd4_remove_clid_dir()
413 if (status < 0) in nfsd4_remove_clid_dir()
416 status = nfsd4_unlink_clid_dir(dname, HEXDIR_LEN-1, nn); in nfsd4_remove_clid_dir()
418 if (status == 0) { in nfsd4_remove_clid_dir()
427 if (status) in nfsd4_remove_clid_dir()
435 int status; in purge_old() local
454 status = vfs_rmdir(d_inode(parent), child); in purge_old()
455 if (status) in purge_old()
468 int status; in nfsd4_recdir_purge_old() local
473 status = mnt_want_write_file(nn->rec_file); in nfsd4_recdir_purge_old()
474 if (status) in nfsd4_recdir_purge_old()
476 status = nfsd4_list_rec_dir(purge_old, nn); in nfsd4_recdir_purge_old()
477 if (status == 0) in nfsd4_recdir_purge_old()
482 if (status) in nfsd4_recdir_purge_old()
514 int status; in nfsd4_recdir_load() local
520 status = nfsd4_list_rec_dir(load_recdir, nn); in nfsd4_recdir_load()
521 if (status) in nfsd4_recdir_load()
524 return status; in nfsd4_recdir_load()
536 int status; in nfsd4_init_recdir() local
543 status = nfs4_save_creds(&original_cred); in nfsd4_init_recdir()
544 if (status < 0) { in nfsd4_init_recdir()
547 status); in nfsd4_init_recdir()
548 return status; in nfsd4_init_recdir()
555 status = PTR_ERR(nn->rec_file); in nfsd4_init_recdir()
560 if (!status) in nfsd4_init_recdir()
562 return status; in nfsd4_init_recdir()
606 int status; in nfsd4_load_reboot_recovery_data() local
608 status = nfsd4_init_recdir(net); in nfsd4_load_reboot_recovery_data()
609 if (status) in nfsd4_load_reboot_recovery_data()
610 return status; in nfsd4_load_reboot_recovery_data()
612 status = nfsd4_recdir_load(net); in nfsd4_load_reboot_recovery_data()
613 if (status) in nfsd4_load_reboot_recovery_data()
616 return status; in nfsd4_load_reboot_recovery_data()
622 int status; in nfsd4_legacy_tracking_init() local
630 status = nfs4_legacy_state_init(net); in nfsd4_legacy_tracking_init()
631 if (status) in nfsd4_legacy_tracking_init()
632 return status; in nfsd4_legacy_tracking_init()
634 status = nfsd4_load_reboot_recovery_data(net); in nfsd4_legacy_tracking_init()
635 if (status) in nfsd4_legacy_tracking_init()
642 return status; in nfsd4_legacy_tracking_init()
661 int status; in nfs4_reset_recoverydir() local
664 status = kern_path(recdir, LOOKUP_FOLLOW, &path); in nfs4_reset_recoverydir()
665 if (status) in nfs4_reset_recoverydir()
666 return status; in nfs4_reset_recoverydir()
667 status = -ENOTDIR; in nfs4_reset_recoverydir()
670 status = 0; in nfs4_reset_recoverydir()
673 return status; in nfs4_reset_recoverydir()
685 int status; in nfsd4_check_legacy_client() local
695 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_check_legacy_client()
696 if (status) { in nfsd4_check_legacy_client()
697 legacy_recdir_name_error(clp, status); in nfsd4_check_legacy_client()
698 return status; in nfsd4_check_legacy_client()
869 int16_t status; in cld_pipe_downcall() local
888 if (get_user(status, &hdr->cm_status)) { in cld_pipe_downcall()
899 if (status != -EINPROGRESS) in cld_pipe_downcall()
912 if (status == -EINPROGRESS) in cld_pipe_downcall()
1037 int status; in nfsd4_init_cld_pipe() local
1039 status = __nfsd4_init_cld_pipe(net); in nfsd4_init_cld_pipe()
1040 if (!status) in nfsd4_init_cld_pipe()
1042 return status; in nfsd4_init_cld_pipe()
1297 int status; in nfsd4_cld_check() local
1311 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_cld_check()
1312 if (status) in nfsd4_cld_check()
1340 int status; in nfsd4_cld_check_v2() local
1358 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_cld_check_v2()
1359 if (status) in nfsd4_cld_check_v2()
1389 status = crypto_shash_digest(desc, principal, strlen(principal), in nfsd4_cld_check_v2()
1392 if (status) { in nfsd4_cld_check_v2()
1577 int status; in nfsd4_cld_tracking_init() local
1583 status = nfs4_cld_state_init(net); in nfsd4_cld_tracking_init()
1584 if (status) in nfsd4_cld_tracking_init()
1585 return status; in nfsd4_cld_tracking_init()
1587 status = __nfsd4_init_cld_pipe(net); in nfsd4_cld_tracking_init()
1588 if (status) in nfsd4_cld_tracking_init()
1603 status = -ETIMEDOUT; in nfsd4_cld_tracking_init()
1608 status = PTR_ERR(tfm); in nfsd4_cld_tracking_init()
1613 status = nfsd4_cld_get_version(nn); in nfsd4_cld_tracking_init()
1614 if (status == -EOPNOTSUPP) in nfsd4_cld_tracking_init()
1617 status = nfsd4_cld_grace_start(nn); in nfsd4_cld_tracking_init()
1618 if (status) { in nfsd4_cld_tracking_init()
1619 if (status == -EOPNOTSUPP) in nfsd4_cld_tracking_init()
1631 return status; in nfsd4_cld_tracking_init()
2032 int status; in nfsd4_client_tracking_init() local
2042 status = nn->client_tracking_ops->init(net); in nfsd4_client_tracking_init()
2043 if (!status) in nfsd4_client_tracking_init()
2044 return status; in nfsd4_client_tracking_init()
2045 if (status != -ETIMEDOUT) { in nfsd4_client_tracking_init()
2047 status = nn->client_tracking_ops->init(net); in nfsd4_client_tracking_init()
2048 if (!status) in nfsd4_client_tracking_init()
2049 return status; in nfsd4_client_tracking_init()
2056 status = nn->client_tracking_ops->init(net); in nfsd4_client_tracking_init()
2057 if (!status) in nfsd4_client_tracking_init()
2058 return status; in nfsd4_client_tracking_init()
2065 status = kern_path(nfs4_recoverydir(), LOOKUP_FOLLOW, &path); in nfsd4_client_tracking_init()
2066 if (!status) { in nfsd4_client_tracking_init()
2067 status = d_is_dir(path.dentry); in nfsd4_client_tracking_init()
2069 if (!status) { in nfsd4_client_tracking_init()
2070 status = -EINVAL; in nfsd4_client_tracking_init()
2076 status = nn->client_tracking_ops->init(net); in nfsd4_client_tracking_init()
2078 if (status) { in nfsd4_client_tracking_init()
2080 "recovery tracking! (%d)\n", status); in nfsd4_client_tracking_init()
2083 return status; in nfsd4_client_tracking_init()