Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/vfs_subr.c
Show First 20 Lines • Show All 1,852 Lines • ▼ Show 20 Lines | |||||
* is in lieu of the old vinvalbuf mechanism, which performed unneeded | * is in lieu of the old vinvalbuf mechanism, which performed unneeded | ||||
* sync activity. | * sync activity. | ||||
*/ | */ | ||||
int | int | ||||
vtruncbuf(struct vnode *vp, struct ucred *cred, off_t length, int blksize) | vtruncbuf(struct vnode *vp, struct ucred *cred, off_t length, int blksize) | ||||
{ | { | ||||
struct buf *bp, *nbp; | struct buf *bp, *nbp; | ||||
int anyfreed; | int anyfreed; | ||||
int trunclbn; | daddr_t trunclbn; | ||||
struct bufobj *bo; | struct bufobj *bo; | ||||
CTR5(KTR_VFS, "%s: vp %p with cred %p and block %d:%ju", __func__, | CTR5(KTR_VFS, "%s: vp %p with cred %p and block %d:%ju", __func__, | ||||
vp, cred, blksize, (uintmax_t)length); | vp, cred, blksize, (uintmax_t)length); | ||||
/* | /* | ||||
* Round up to the *next* lbn. | * Round up to the *next* lbn. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 3,695 Lines • Show Last 20 Lines |