Lines Matching refs:vp
64 static void ReleaseMetaFileVNode(struct vnode *vp);
742 * vp L - -
744 static void ReleaseMetaFileVNode(struct vnode *vp)
748 if (vp && (fp = VTOF(vp))) {
750 (void)hfs_lock(VTOC(vp), HFS_EXCLUSIVE_LOCK);
752 hfs_unlock(VTOC(vp));
756 vnode_recycle(vp);
757 vnode_put(vp);
800 * vp
1032 void RequireFileLock(FileReference vp, int shareable)
1037 if (VTOC(vp)->c_fileid == kHFSExtentsFileID ||
1038 VTOC(vp)->c_fileid == kHFSAllocationFileID) {
1042 locked = VTOC(vp)->c_lockowner == (void *)current_thread();
1045 switch (VTOC(vp)->c_fileid) {
1047 panic("extents btree not locked! v: 0x%08X\n #\n", (u_int)vp);
1050 panic("catalog btree not locked! v: 0x%08X\n #\n", (u_int)vp);
1054 if (VTOHFS(vp)->jnl == NULL)
1055 panic("allocation file not locked! v: 0x%08X\n #\n", (u_int)vp);
1058 panic("startup file not locked! v: 0x%08X\n #\n", (u_int)vp);
1060 panic("attributes btree not locked! v: 0x%08X\n #\n", (u_int)vp);
1419 GetLogicalBlockSize(struct vnode *vp)
1423 DBG_ASSERT(vp != NULL);
1426 logBlockSize = VTOHFS(vp)->hfs_logBlockSize;
1428 if (vnode_issystem(vp)) {
1429 if (VTOF(vp)->fcbBTCBPtr != NULL) {
1440 (void) BTGetInformation (VTOF(vp), kBTreeInfoVersion, &bTreeInfo);
1444 } else if (VTOC(vp)->c_fileid == kHFSAllocationFileID) {
1445 logBlockSize = VTOVCB(vp)->vcbVBMIOSize;