Lines Matching refs:woff
837 offset_t woff; in zfs_write() local
901 woff = ioflag & FAPPEND ? zp->z_size : uio->uio_loffset; in zfs_write()
902 if (woff < 0) { in zfs_write()
912 (error = chklock(vp, FWRITE, woff, n, uio->uio_fmode, ct)) != 0) { in zfs_write()
938 woff = lr->lr_offset; in zfs_write()
945 woff = zp->z_size; in zfs_write()
947 uio->uio_loffset = woff; in zfs_write()
954 lr = rangelock_enter(&zp->z_rangelock, woff, n, RL_WRITER); in zfs_write()
957 if (woff >= limit) { in zfs_write()
963 if ((woff + n) > limit || woff > (limit - n)) in zfs_write()
964 n = limit - woff; in zfs_write()
967 write_eof = (woff + n > zp->z_size); in zfs_write()
969 end_size = MAX(zp->z_size, woff + n); in zfs_write()
977 woff = uio->uio_loffset; in zfs_write()
1002 } else if (n >= max_blksz && woff >= zp->z_size && in zfs_write()
1003 P2PHASE(woff, max_blksz) == 0 && in zfs_write()
1031 dmu_tx_hold_write(tx, zp->z_id, woff, MIN(n, max_blksz)); in zfs_write()
1068 rangelock_reduce(lr, woff, n); in zfs_write()
1075 nbytes = MIN(n, max_blksz - P2PHASE(woff, max_blksz)); in zfs_write()
1094 dmu_write(zfsvfs->z_os, zp->z_id, woff, in zfs_write()
1101 sa_get_db(zp->z_sa_hdl), woff, abuf, tx); in zfs_write()
1107 update_pages(vp, woff, in zfs_write()
1157 zfs_log_write(zilog, tx, TX_WRITE, zp, woff, tx_bytes, ioflag); in zfs_write()