Lines Matching refs:ct

187 	caller_context_t ct;  in rfs_setattr()  local
240 ct.cc_sysid = 0; in rfs_setattr()
241 ct.cc_pid = 0; in rfs_setattr()
242 ct.cc_caller_id = nfs2_srv_caller_id; in rfs_setattr()
243 ct.cc_flags = CC_DONTBLOCK; in rfs_setattr()
270 error = VOP_GETATTR(vp, &bva, 0, cr, &ct); in rfs_setattr()
308 (offset_t)va.va_size, cr, &ct); in rfs_setattr()
319 error = VOP_SETATTR(vp, &va, flag, cr, &ct); in rfs_setattr()
328 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) { in rfs_setattr()
346 ct.cc_flags = 0; in rfs_setattr()
351 (void) VOP_FSYNC(vp, FNODSYNC, cr, &ct); in rfs_setattr()
773 caller_context_t ct; in rfs_read() local
789 ct.cc_sysid = 0; in rfs_read()
790 ct.cc_pid = 0; in rfs_read()
791 ct.cc_caller_id = nfs2_srv_caller_id; in rfs_read()
792 ct.cc_flags = CC_DONTBLOCK; in rfs_read()
811 error = VOP_RWLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
814 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) { in rfs_read()
827 error = VOP_GETATTR(vp, &va, 0, cr, &ct); in rfs_read()
830 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
847 error = VOP_ACCESS(vp, VREAD, 0, cr, &ct); in rfs_read()
854 error = VOP_ACCESS(vp, VEXEC, 0, cr, &ct); in rfs_read()
857 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
869 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
935 error = VOP_READ(vp, &uio, 0, cr, &ct); in rfs_read()
945 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) in rfs_read()
950 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
966 error = VOP_GETATTR(vp, &va, 0, cr, &ct); in rfs_read()
972 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
997 VOP_RWUNLOCK(vp, V_WRITELOCK_FALSE, &ct); in rfs_read()
1062 caller_context_t ct; in rfs_write_sync() local
1082 ct.cc_sysid = 0; in rfs_write_sync()
1083 ct.cc_pid = 0; in rfs_write_sync()
1084 ct.cc_caller_id = nfs2_srv_caller_id; in rfs_write_sync()
1085 ct.cc_flags = CC_DONTBLOCK; in rfs_write_sync()
1089 error = VOP_GETATTR(vp, &va, 0, cr, &ct); in rfs_write_sync()
1104 error = VOP_ACCESS(vp, VWRITE, 0, cr, &ct); in rfs_write_sync()
1138 error = VOP_RWLOCK(vp, V_WRITELOCK_TRUE, &ct); in rfs_write_sync()
1141 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) { in rfs_write_sync()
1179 error = VOP_WRITE(vp, &uio, FSYNC, cr, &ct); in rfs_write_sync()
1223 error = VOP_WRITE(vp, &uio, FSYNC, cr, &ct); in rfs_write_sync()
1230 VOP_RWUNLOCK(vp, V_WRITELOCK_TRUE, &ct); in rfs_write_sync()
1239 error = VOP_GETATTR(vp, &va, 0, cr, &ct); in rfs_write_sync()
1254 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) in rfs_write_sync()
1321 caller_context_t ct; in rfs_write() local
1467 ct.cc_sysid = 0; in rfs_write()
1468 ct.cc_pid = 0; in rfs_write()
1469 ct.cc_caller_id = nfs2_srv_caller_id; in rfs_write()
1470 ct.cc_flags = CC_DONTBLOCK; in rfs_write()
1476 error = VOP_RWLOCK(vp, V_WRITELOCK_TRUE, &ct); in rfs_write()
1479 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) { in rfs_write()
1558 error = VOP_GETATTR(vp, &va, 0, rp->cr, &ct); in rfs_write()
1568 error = VOP_ACCESS(vp, VWRITE, 0, rp->cr, &ct); in rfs_write()
1715 error = VOP_WRITE(vp, &uio, 0, rp->cr, &ct); in rfs_write()
1719 if (error == EAGAIN && (ct.cc_flags & CC_WOULDBLOCK)) in rfs_write()
1734 error = VOP_GETATTR(vp, &va, 0, rp->cr, &ct); in rfs_write()
1763 error = VOP_PUTPAGE(vp, (u_offset_t)off, len, 0, cr, &ct); in rfs_write()
1766 error = VOP_FSYNC(vp, FNODSYNC, cr, &ct); in rfs_write()
1770 VOP_RWUNLOCK(vp, V_WRITELOCK_TRUE, &ct); in rfs_write()