version 1.50, 2001/09/06 02:16:01 |
version 1.51, 2001/09/15 20:36:41 |
|
|
#include <ufs/ffs/ffs_extern.h> |
#include <ufs/ffs/ffs_extern.h> |
|
|
static ufs_daddr_t ffs_alloccg __P((struct inode *, int, ufs_daddr_t, int)); |
static ufs_daddr_t ffs_alloccg __P((struct inode *, int, ufs_daddr_t, int)); |
static ufs_daddr_t ffs_alloccgblk __P((struct inode *, struct buf *, |
static ufs_daddr_t ffs_alloccgblk __P((struct inode *, struct buf *, ufs_daddr_t)); |
ufs_daddr_t)); |
|
static ufs_daddr_t ffs_clusteralloc __P((struct inode *, int, ufs_daddr_t, int)); |
static ufs_daddr_t ffs_clusteralloc __P((struct inode *, int, ufs_daddr_t, int)); |
static ino_t ffs_dirpref __P((struct inode *)); |
static ino_t ffs_dirpref __P((struct inode *)); |
static ufs_daddr_t ffs_fragextend __P((struct inode *, int, long, int, int)); |
static ufs_daddr_t ffs_fragextend __P((struct inode *, int, long, int, int)); |
static void ffs_fserr __P((struct fs *, u_int, char *)); |
static void ffs_fserr __P((struct fs *, u_int, char *)); |
static u_long ffs_hashalloc |
static u_long ffs_hashalloc __P((struct inode *, int, long, int, |
__P((struct inode *, int, long, int, |
ufs_daddr_t (*)(struct inode *, int, ufs_daddr_t, int))); |
ufs_daddr_t (*)(struct inode *, int, ufs_daddr_t, int))); |
|
static ufs_daddr_t ffs_nodealloccg __P((struct inode *, int, ufs_daddr_t, int)); |
static ufs_daddr_t ffs_nodealloccg __P((struct inode *, int, ufs_daddr_t, int)); |
static ufs_daddr_t ffs_mapsearch __P((struct fs *, struct cg *, |
static ufs_daddr_t ffs_mapsearch __P((struct fs *, struct cg *, |
ufs_daddr_t, int)); |
ufs_daddr_t, int)); |
Line 117 ffs_alloc(ip, lbn, bpref, size, cred, bn |
|
Line 115 ffs_alloc(ip, lbn, bpref, size, cred, bn |
|
#endif |
#endif |
|
|
#ifdef UVM_PAGE_TRKOWN |
#ifdef UVM_PAGE_TRKOWN |
if (ITOV(ip)->v_type == VREG && lbn > 0) { |
if (ITOV(ip)->v_type == VREG && |
|
lblktosize(fs, (voff_t)lbn) < round_page(ITOV(ip)->v_size)) { |
struct vm_page *pg; |
struct vm_page *pg; |
struct uvm_object *uobj = &ITOV(ip)->v_uvm.u_obj; |
struct uvm_object *uobj = &ITOV(ip)->v_uobj; |
voff_t off = trunc_page(lblktosize(fs, lbn)); |
voff_t off = trunc_page(lblktosize(fs, lbn)); |
voff_t endoff = round_page(lblktosize(fs, lbn) + size); |
voff_t endoff = round_page(lblktosize(fs, lbn) + size); |
|
|
Line 205 ffs_realloccg(ip, lbprev, bpref, osize, |
|
Line 204 ffs_realloccg(ip, lbprev, bpref, osize, |
|
#ifdef UVM_PAGE_TRKOWN |
#ifdef UVM_PAGE_TRKOWN |
if (ITOV(ip)->v_type == VREG) { |
if (ITOV(ip)->v_type == VREG) { |
struct vm_page *pg; |
struct vm_page *pg; |
struct uvm_object *uobj = &ITOV(ip)->v_uvm.u_obj; |
struct uvm_object *uobj = &ITOV(ip)->v_uobj; |
voff_t off = trunc_page(lblktosize(fs, lbprev)); |
voff_t off = trunc_page(lblktosize(fs, lbprev)); |
voff_t endoff = round_page(lblktosize(fs, lbprev) + osize); |
voff_t endoff = round_page(lblktosize(fs, lbprev) + osize); |
|
|