Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_bio.c
Show First 20 Lines • Show All 3,570 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* | /* | ||||
* Check to see if a block is currently memory resident. | * Check to see if a block is currently memory resident. | ||||
*/ | */ | ||||
struct buf * | struct buf * | ||||
incore(struct bufobj *bo, daddr_t blkno) | incore(struct bufobj *bo, daddr_t blkno) | ||||
{ | { | ||||
struct buf *bp; | return (gbincore_unlocked(bo, blkno)); | ||||
BO_RLOCK(bo); | |||||
bp = gbincore(bo, blkno); | |||||
BO_RUNLOCK(bo); | |||||
return (bp); | |||||
} | } | ||||
/* | /* | ||||
* Returns true if no I/O is needed to access the | * Returns true if no I/O is needed to access the | ||||
* associated VM object. This is like incore except | * associated VM object. This is like incore except | ||||
* it also hunts around in the VM system for the data. | * it also hunts around in the VM system for the data. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,891 Lines • Show Last 20 Lines |