Lines Matching refs:bp
1482 buf_t bp;
1503 bp = buf_getblk(vp, node, 0, 0, 0, BLK_META | BLK_ONLYVALID);
1505 if (bp) {
1506 if ((buf_flags(bp) & (B_LOCKED | B_DELWRI)) == B_DELWRI)
1507 (void) VNOP_BWRITE(bp);
1509 buf_brelse(bp);
1557 hfs_btsync_callback(struct buf *bp, __unused void *dummy)
1559 buf_clearflags(bp, B_LOCKED);
1560 (void) buf_bawrite(bp);
1844 hfs_removefile_callback(struct buf *bp, void *hfsmp) {
1846 if ( !(buf_flags(bp) & B_META))
1847 panic("hfs: symlink bp @ %p is not marked meta-data!\n", bp);
1851 journal_kill_block(((struct hfsmount *)hfsmp)->jnl, bp);
2778 struct buf *bp = NULL;
2860 bp = buf_getblk(vp, (daddr64_t)0, roundup((int)fp->ff_size, hfsmp->hfs_physical_block_size),
2863 journal_modify_block_start(hfsmp->jnl, bp);
2865 datap = (char *)buf_dataptr(bp);
2866 bzero(datap, buf_size(bp));
2870 journal_modify_block_end(hfsmp->jnl, bp, NULL, NULL);
2872 buf_bawrite(bp);
3226 struct buf *bp = NULL;
3231 vfs_context_ucred(ap->a_context), &bp);
3233 if (bp)
3234 buf_brelse(bp);
3241 bcopy((char *)buf_dataptr(bp), fp->ff_symlinkptr, (size_t)fp->ff_size);
3243 if (VTOHFS(vp)->jnl && (buf_flags(bp) & B_LOCKED) == 0) {
3244 buf_markinvalid(bp); /* data no longer needed */
3246 buf_brelse(bp);