[BACK]Return to ffs_balloc.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / ufs / ffs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/ufs/ffs/ffs_balloc.c between version 1.40.12.1 and 1.40.12.2

version 1.40.12.1, 2006/03/28 09:42:29 version 1.40.12.2, 2006/05/24 15:50:47
Line 54  __KERNEL_RCSID(0, "$NetBSD$");
Line 54  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/mount.h>  #include <sys/mount.h>
 #include <sys/vnode.h>  #include <sys/vnode.h>
 #include <sys/mount.h>  #include <sys/mount.h>
   #include <sys/kauth.h>
   
 #include <ufs/ufs/quota.h>  #include <ufs/ufs/quota.h>
 #include <ufs/ufs/ufsmount.h>  #include <ufs/ufs/ufsmount.h>
Line 66  __KERNEL_RCSID(0, "$NetBSD$");
Line 67  __KERNEL_RCSID(0, "$NetBSD$");
   
 #include <uvm/uvm.h>  #include <uvm/uvm.h>
   
 static int ffs_balloc_ufs1(struct vnode *, off_t, int, struct ucred *, int,  static int ffs_balloc_ufs1(struct vnode *, off_t, int, kauth_cred_t, int,
     struct buf **);      struct buf **);
 static int ffs_balloc_ufs2(struct vnode *, off_t, int, struct ucred *, int,  static int ffs_balloc_ufs2(struct vnode *, off_t, int, kauth_cred_t, int,
     struct buf **);      struct buf **);
   
 /*  /*
Line 78  static int ffs_balloc_ufs2(struct vnode 
Line 79  static int ffs_balloc_ufs2(struct vnode 
  */   */
   
 int  int
 ffs_balloc(struct vnode *vp, off_t off, int size, struct ucred *cred, int flags,  ffs_balloc(struct vnode *vp, off_t off, int size, kauth_cred_t cred, int flags,
     struct buf **bpp)      struct buf **bpp)
 {  {
   
Line 89  ffs_balloc(struct vnode *vp, off_t off, 
Line 90  ffs_balloc(struct vnode *vp, off_t off, 
 }  }
   
 static int  static int
 ffs_balloc_ufs1(struct vnode *vp, off_t off, int size, struct ucred *cred,  ffs_balloc_ufs1(struct vnode *vp, off_t off, int size, kauth_cred_t cred,
     int flags, struct buf **bpp)      int flags, struct buf **bpp)
 {  {
         daddr_t lbn, lastlbn;          daddr_t lbn, lastlbn;
Line 147  ffs_balloc_ufs1(struct vnode *vp, off_t 
Line 148  ffs_balloc_ufs1(struct vnode *vp, off_t 
                         uvm_vnp_setsize(vp, ip->i_ffs1_size);                          uvm_vnp_setsize(vp, ip->i_ffs1_size);
                         ip->i_ffs1_db[nb] = ufs_rw32((u_int32_t)newb, needswap);                          ip->i_ffs1_db[nb] = ufs_rw32((u_int32_t)newb, needswap);
                         ip->i_flag |= IN_CHANGE | IN_UPDATE;                          ip->i_flag |= IN_CHANGE | IN_UPDATE;
                         if (bpp) {                          if (bpp && *bpp) {
                                 if (flags & B_SYNC)                                  if (flags & B_SYNC)
                                         bwrite(*bpp);                                          bwrite(*bpp);
                                 else                                  else
Line 526  fail:
Line 527  fail:
 }  }
   
 static int  static int
 ffs_balloc_ufs2(struct vnode *vp, off_t off, int size, struct ucred *cred,  ffs_balloc_ufs2(struct vnode *vp, off_t off, int size, kauth_cred_t cred,
     int flags, struct buf **bpp)      int flags, struct buf **bpp)
 {  {
         daddr_t lbn, lastlbn;          daddr_t lbn, lastlbn;

Legend:
Removed from v.1.40.12.1  
changed lines
  Added in v.1.40.12.2

CVSweb <webmaster@jp.NetBSD.org>