Lines Matching refs:host_err

207 	int			host_err;  in nfsd_lookup_dentry()  local
224 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry()
225 if (host_err) in nfsd_lookup_dentry()
236 host_err = PTR_ERR(dentry); in nfsd_lookup_dentry()
249 if ((host_err = nfsd_cross_mnt(rqstp, &dentry, &exp))) { in nfsd_lookup_dentry()
261 return nfserrno(host_err); in nfsd_lookup_dentry()
357 int host_err; in nfsd_get_write_access() local
368 host_err = get_write_access(inode); in nfsd_get_write_access()
369 if (host_err) in nfsd_get_write_access()
372 host_err = locks_verify_truncate(inode, NULL, iap->ia_size); in nfsd_get_write_access()
373 if (host_err) in nfsd_get_write_access()
380 return nfserrno(host_err); in nfsd_get_write_access()
395 int host_err; in nfsd_setattr() local
425 host_err = fh_want_write(fhp); in nfsd_setattr()
426 if (host_err) in nfsd_setattr()
472 host_err = notify_change(dentry, &size_attr, NULL); in nfsd_setattr()
473 if (host_err) in nfsd_setattr()
487 host_err = notify_change(dentry, iap, NULL); in nfsd_setattr()
494 if (!host_err) in nfsd_setattr()
495 host_err = commit_metadata(fhp); in nfsd_setattr()
496 return nfserrno(host_err); in nfsd_setattr()
721 int host_err = 0; in nfsd_open() local
763 host_err = nfsd_open_break_lease(inode, may_flags); in nfsd_open()
764 if (host_err) /* NOMEM or WOULDBLOCK */ in nfsd_open()
776 host_err = PTR_ERR(file); in nfsd_open()
780 host_err = ima_file_check(file, may_flags); in nfsd_open()
781 if (host_err) { in nfsd_open()
793 err = nfserrno(host_err); in nfsd_open()
900 unsigned long *count, int host_err) in nfsd_finish_read() argument
902 if (host_err >= 0) { in nfsd_finish_read()
903 nfsdstats.io_read += host_err; in nfsd_finish_read()
904 *count = host_err; in nfsd_finish_read()
909 trace_nfsd_read_err(rqstp, fhp, offset, host_err); in nfsd_finish_read()
910 return nfserrno(host_err); in nfsd_finish_read()
923 int host_err; in nfsd_splice_read() local
927 host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); in nfsd_splice_read()
928 return nfsd_finish_read(rqstp, fhp, file, offset, count, host_err); in nfsd_splice_read()
936 int host_err; in nfsd_readv() local
940 host_err = vfs_iter_read(file, &iter, &offset, 0); in nfsd_readv()
941 return nfsd_finish_read(rqstp, fhp, file, offset, count, host_err); in nfsd_readv()
989 int host_err; in nfsd_vfs_write() local
1016 host_err = vfs_iter_write(file, &iter, &pos, flags); in nfsd_vfs_write()
1017 if (host_err < 0) in nfsd_vfs_write()
1019 *cnt = host_err; in nfsd_vfs_write()
1024 host_err = wait_for_concurrent_writes(file); in nfsd_vfs_write()
1027 if (host_err >= 0) { in nfsd_vfs_write()
1031 trace_nfsd_write_err(rqstp, fhp, offset, host_err); in nfsd_vfs_write()
1032 nfserr = nfserrno(host_err); in nfsd_vfs_write()
1188 int host_err; in nfsd_create_locked() local
1213 host_err = 0; in nfsd_create_locked()
1216 host_err = vfs_create(dirp, dchild, iap->ia_mode, true); in nfsd_create_locked()
1217 if (!host_err) in nfsd_create_locked()
1221 host_err = vfs_mkdir(dirp, dchild, iap->ia_mode); in nfsd_create_locked()
1222 if (!host_err && unlikely(d_unhashed(dchild))) { in nfsd_create_locked()
1228 host_err = PTR_ERR(d); in nfsd_create_locked()
1249 host_err = vfs_mknod(dirp, dchild, iap->ia_mode, rdev); in nfsd_create_locked()
1254 host_err = -EINVAL; in nfsd_create_locked()
1256 if (host_err < 0) in nfsd_create_locked()
1280 err = nfserrno(host_err); in nfsd_create_locked()
1298 int host_err; in nfsd_create() local
1310 host_err = fh_want_write(fhp); in nfsd_create()
1311 if (host_err) in nfsd_create()
1312 return nfserrno(host_err); in nfsd_create()
1316 host_err = PTR_ERR(dchild); in nfsd_create()
1318 return nfserrno(host_err); in nfsd_create()
1345 int host_err; in do_nfsd_create() local
1363 host_err = fh_want_write(fhp); in do_nfsd_create()
1364 if (host_err) in do_nfsd_create()
1373 host_err = PTR_ERR(dchild); in do_nfsd_create()
1448 host_err = vfs_create(dirp, dchild, iap->ia_mode, true); in do_nfsd_create()
1449 if (host_err < 0) { in do_nfsd_create()
1493 err = nfserrno(host_err); in do_nfsd_create()
1548 int host_err; in nfsd_symlink() local
1561 host_err = fh_want_write(fhp); in nfsd_symlink()
1562 if (host_err) in nfsd_symlink()
1568 host_err = PTR_ERR(dnew); in nfsd_symlink()
1572 host_err = vfs_symlink(d_inode(dentry), dnew, path); in nfsd_symlink()
1573 err = nfserrno(host_err); in nfsd_symlink()
1587 err = nfserrno(host_err); in nfsd_symlink()
1602 int host_err; in nfsd_link() local
1620 host_err = fh_want_write(tfhp); in nfsd_link()
1621 if (host_err) { in nfsd_link()
1622 err = nfserrno(host_err); in nfsd_link()
1631 host_err = PTR_ERR(dnew); in nfsd_link()
1640 host_err = vfs_link(dold, dirp, dnew, NULL); in nfsd_link()
1641 if (!host_err) { in nfsd_link()
1646 if (host_err == -EXDEV && rqstp->rq_vers == 2) in nfsd_link()
1649 err = nfserrno(host_err); in nfsd_link()
1660 err = nfserrno(host_err); in nfsd_link()
1675 int host_err; in nfsd_rename() local
1694 host_err = fh_want_write(ffhp); in nfsd_rename()
1695 if (host_err) { in nfsd_rename()
1696 err = nfserrno(host_err); in nfsd_rename()
1708 host_err = PTR_ERR(odentry); in nfsd_rename()
1712 host_err = -ENOENT; in nfsd_rename()
1715 host_err = -EINVAL; in nfsd_rename()
1720 host_err = PTR_ERR(ndentry); in nfsd_rename()
1723 host_err = -ENOTEMPTY; in nfsd_rename()
1727 host_err = -EXDEV; in nfsd_rename()
1733 host_err = vfs_rename(fdir, odentry, tdir, ndentry, NULL, 0); in nfsd_rename()
1734 if (!host_err) { in nfsd_rename()
1735 host_err = commit_metadata(tfhp); in nfsd_rename()
1736 if (!host_err) in nfsd_rename()
1737 host_err = commit_metadata(ffhp); in nfsd_rename()
1744 err = nfserrno(host_err); in nfsd_rename()
1771 int host_err; in nfsd_unlink() local
1780 host_err = fh_want_write(fhp); in nfsd_unlink()
1781 if (host_err) in nfsd_unlink()
1789 host_err = PTR_ERR(rdentry); in nfsd_unlink()
1803 host_err = vfs_unlink(dirp, rdentry, NULL); in nfsd_unlink()
1805 host_err = vfs_rmdir(dirp, rdentry); in nfsd_unlink()
1806 if (!host_err) in nfsd_unlink()
1807 host_err = commit_metadata(fhp); in nfsd_unlink()
1811 err = nfserrno(host_err); in nfsd_unlink()
1867 int host_err; in nfsd_buffered_readdir() local
1887 host_err = iterate_dir(file, &buf.ctx); in nfsd_buffered_readdir()
1889 host_err = 0; in nfsd_buffered_readdir()
1891 if (host_err < 0) in nfsd_buffered_readdir()
1923 if (host_err) in nfsd_buffered_readdir()
1924 return nfserrno(host_err); in nfsd_buffered_readdir()