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); |
} |
} |