[BACK]Return to ffs_alloc.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.sbin / makefs / ffs

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

Diff for /src/usr.sbin/makefs/ffs/ffs_alloc.c between version 1.19 and 1.20

version 1.19, 2012/04/19 17:28:26 version 1.20, 2013/01/22 09:39:19
Line 164  ffs_blkpref_ufs1(struct inode *ip, daddr
Line 164  ffs_blkpref_ufs1(struct inode *ip, daddr
   
         fs = ip->i_fs;          fs = ip->i_fs;
         if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) {          if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) {
                 if (lbn < NDADDR + NINDIR(fs)) {                  if (lbn < UFS_NDADDR + NINDIR(fs)) {
                         cg = ino_to_cg(fs, ip->i_number);                          cg = ino_to_cg(fs, ip->i_number);
                         return (fs->fs_fpg * cg + fs->fs_frag);                          return (fs->fs_fpg * cg + fs->fs_frag);
                 }                  }
Line 203  ffs_blkpref_ufs2(struct inode *ip, daddr
Line 203  ffs_blkpref_ufs2(struct inode *ip, daddr
   
         fs = ip->i_fs;          fs = ip->i_fs;
         if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) {          if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) {
                 if (lbn < NDADDR + NINDIR(fs)) {                  if (lbn < UFS_NDADDR + NINDIR(fs)) {
                         cg = ino_to_cg(fs, ip->i_number);                          cg = ino_to_cg(fs, ip->i_number);
                         return (fs->fs_fpg * cg + fs->fs_frag);                          return (fs->fs_fpg * cg + fs->fs_frag);
                 }                  }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

CVSweb <webmaster@jp.NetBSD.org>