* Copyright (c) 1991 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)lfs_subr.c 7.13 (Berkeley) %G%
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
#include <ufs/lfs/lfs_extern.h>
* Return buffer with the contents of block "offset" from the beginning of
* directory "ip". If "res" is non-zero, fill it in with a pointer to the
* remaining space in the directory.
struct vop_blkatoff_args
/* {
lbn
= lblkno(fs
, ap
->a_offset
);
if (error
= bread(ap
->a_vp
, lbn
, bsize
, NOCRED
, &bp
)) {
*ap
->a_res
= bp
->b_un
.b_addr
+ blkoff(fs
, ap
->a_offset
);
* Single thread the segment writer.
(void)tsleep(&fs
->lfs_seglock
, PRIBIO
+ 1, "lfs seglock", 0);
* Single thread the segment writer.
wakeup(&fs
->lfs_seglock
); /* XXX: May not be necessary. */