Lines Matching refs:cred
1462 kauth_cred_t cred;
1465 cred = bp->nb_rcred;
1466 if (IS_VALID_CRED(cred))
1467 kauth_cred_ref(cred);
1480 error = nfs_buf_read_rpc(bp, thd, cred);
1486 if (IS_VALID_CRED(cred))
1487 kauth_cred_unref(&cred);
1537 nfs_buf_read_rpc(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred)
1597 error = nmp->nm_funcs->nf_read_rpc_async(np, boff + offset, len, thd, cred, &cb, &req);
1656 kauth_cred_t cred;
1663 cred = req->r_cred;
1664 if (IS_VALID_CRED(cred))
1665 kauth_cred_ref(cred);
1696 if (IS_VALID_CRED(cred))
1697 kauth_cred_unref(&cred);
1731 if (IS_VALID_CRED(cred))
1732 kauth_cred_unref(&cred);
1777 error = nmp->nm_funcs->nf_read_rpc_async(np, NBOFF(bp) + offset, length, thd, cred, &cb, &rreq);
1779 if (IS_VALID_CRED(cred))
1780 kauth_cred_unref(&cred);
1802 if (IS_VALID_CRED(cred))
1803 kauth_cred_unref(&cred);
1838 nfs_buf_readahead(nfsnode_t np, int ioflag, daddr64_t *rabnp, daddr64_t lastrabn, thread_t thd, kauth_cred_t cred)
1878 if (!IS_VALID_CRED(bp->nb_rcred) && IS_VALID_CRED(cred)) {
1879 kauth_cred_ref(cred);
1880 bp->nb_rcred = cred;
1905 kauth_cred_t cred;
1913 cred = vfs_context_ucred(ctx);
2053 error = nfs_buf_readahead(np, ioflag, &rabn, lastrabn, thd, cred);
2139 kauth_cred_ref(cred);
2140 bp->nb_wcred = cred;
2194 if (!IS_VALID_CRED(bp->nb_rcred) && IS_VALID_CRED(cred)) {
2195 kauth_cred_ref(cred);
2196 bp->nb_rcred = cred;
2283 kauth_cred_t cred;
2322 cred = bp->nb_wcred;
2323 if (!IS_VALID_CRED(cred) && ISSET(bp->nb_flags, NB_READ))
2324 cred = bp->nb_rcred; /* shouldn't really happen, but... */
2325 if (IS_VALID_CRED(cred))
2326 kauth_cred_ref(cred);
2431 error = nfs_buf_write_rpc(bp, iomode, thd, cred);
2440 error = nfs_buf_write_dirty_pages(bp, thd, cred);
2479 nfs_vinvalbuf2(NFSTOV(np), V_SAVE|V_IGNORE_WRITEERR, thd, cred, 1);
2484 if (IS_VALID_CRED(cred))
2485 kauth_cred_unref(&cred);
2493 nfs_buf_write_finish(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred)
2590 nfs_buf_write_dirty_pages(bp, thd, cred);
2602 nfs_buf_write_dirty_pages(struct nfsbuf *bp, thread_t thd, kauth_cred_t cred)
2645 error = nfs_write_rpc2(np, auio, thd, cred, &iomode2, &bp->nb_verf);
2666 error = nmp->nm_funcs->nf_commit_rpc(np, NBOFF(bp), bp->nb_bufsize, cred, wverf);
2686 nfs_buf_write_rpc(struct nfsbuf *bp, int iomode, thread_t thd, kauth_cred_t cred)
2748 error = nmp->nm_funcs->nf_write_rpc_async(np, auio, len, thd, cred,
2776 nfs_buf_write_finish(bp, thd, cred);
2785 nfs_buf_write_finish(bp, thd, cred);
2812 kauth_cred_t cred;
2819 cred = req->r_cred;
2820 if (IS_VALID_CRED(cred))
2821 kauth_cred_ref(cred);
2848 if (IS_VALID_CRED(cred))
2849 kauth_cred_unref(&cred);
2883 if (IS_VALID_CRED(cred))
2884 kauth_cred_unref(&cred);
2945 error = nmp->nm_funcs->nf_write_rpc_async(np, auio, length, thd, cred,
2948 if (IS_VALID_CRED(cred))
2949 kauth_cred_unref(&cred);
2994 nfs_buf_write_finish(bp, thd, cred);
2999 if (IS_VALID_CRED(cred))
3000 kauth_cred_unref(&cred);
3077 * Work out if all buffers are using the same cred
3081 * on the same original cred in order for them to be equal.
3461 kauth_cred_t cred,
3535 if (mustwrite && !IS_VALID_CRED(bp->nb_wcred) && !IS_VALID_CRED(cred)) {
3549 kauth_cred_ref(cred);
3550 bp->nb_wcred = cred;
3618 nfs_vinvalbuf2(vnode_t vp, int flags, thread_t thd, kauth_cred_t cred, int intrflg)
3655 error = nfs_vinvalbuf_internal(np, flags, thd, cred, slpflag, 0);
3660 error = nfs_vinvalbuf_internal(np, flags, thd, cred, 0, slptimeo);