Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/ext2fs/ext2_bmap.c
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | if ((bp->b_flags & B_CACHE) == 0) { | ||||
bstrategy(bp); | bstrategy(bp); | ||||
#ifdef RACCT | #ifdef RACCT | ||||
if (racct_enable) { | if (racct_enable) { | ||||
PROC_LOCK(curproc); | PROC_LOCK(curproc); | ||||
racct_add_buf(curproc, bp, 0); | racct_add_buf(curproc, bp, 0); | ||||
PROC_UNLOCK(curproc); | PROC_UNLOCK(curproc); | ||||
} | } | ||||
#endif | #endif | ||||
curthread->td_ru.ru_inblock++; | RU_ATOMIC_INC(curthread->td_ru.ru_inblock); | ||||
error = bufwait(bp); | error = bufwait(bp); | ||||
if (error != 0) { | if (error != 0) { | ||||
brelse(bp); | brelse(bp); | ||||
return (error); | return (error); | ||||
} | } | ||||
} | } | ||||
*bpp = bp; | *bpp = bp; | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |