Lines Matching refs:uspi
50 struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi;
51 int ptrs = uspi->s_apb;
52 int ptrs_bits = uspi->s_apbshift;
59 UFSD("ptrs=uspi->s_apb = %d,double_blocks=%ld \n",ptrs,double_blocks);
89 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
90 u64 mask = (u64) uspi->s_apbmask>>uspi->s_fpbshift;
91 int shift = uspi->s_apbshift-uspi->s_fpbshift;
93 int depth = ufs_block_to_path(inode, frag >> uspi->s_fpbshift, offsets);
101 UFSD(": uspi->s_fpbshift = %d ,uspi->s_apbmask = %x, mask=%llx\n",
102 uspi->s_fpbshift, uspi->s_apbmask,
121 bh = sb_bread(sb, uspi->s_sbbase + fs32_to_cpu(sb, block)+(n>>shift));
129 ret = (u64) (uspi->s_sbbase + fs32_to_cpu(sb, block) + (frag & uspi->s_fpbmask));
142 temp = (u64)(uspi->s_sbbase) + fs64_to_cpu(sb, u2_block);
151 temp = (u64)uspi->s_sbbase + fs64_to_cpu(sb, u2_block);
152 ret = temp + (u64) (frag & uspi->s_fpbmask);
179 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
196 p = ufs_get_direct_data_ptr(uspi, ufsi, block);
206 result = sb_getblk(sb, uspi->s_sbbase + tmp + blockoff);
215 *phys = uspi->s_sbbase + tmp + blockoff;
230 p2 = ufs_get_direct_data_ptr(uspi, ufsi, lastblock);
233 uspi->s_fpb - lastblockoff,
245 ufs_get_direct_data_ptr(uspi, ufsi,
248 goal = tmp + uspi->s_fpb;
268 ufs_get_direct_data_ptr(uspi, ufsi, block - 1));
270 goal = tmp + uspi->s_fpb;
273 goal, uspi->s_fpb, err,
285 result = sb_getblk(sb, uspi->s_sbbase + tmp + blockoff);
287 *phys = uspi->s_sbbase + tmp + blockoff;
323 * (block will hold this fragment and also uspi->s_fpb-1)
335 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
357 if (uspi->fs_magic == UFS2_MAGIC)
365 result = sb_getblk(sb, uspi->s_sbbase + tmp + blockoff);
371 *phys = uspi->s_sbbase + tmp + blockoff;
376 if (block && (uspi->fs_magic == UFS2_MAGIC ?
379 goal = tmp + uspi->s_fpb;
381 goal = bh->b_blocknr + uspi->s_fpb;
383 uspi->s_fpb, err, locked_page);
392 result = sb_getblk(sb, uspi->s_sbbase + tmp + blockoff);
394 *phys = uspi->s_sbbase + tmp + blockoff;
418 struct ufs_sb_private_info * uspi = UFS_SB(sb)->s_uspi;
443 ((UFS_NDADDR + uspi->s_apb + uspi->s_2apb + uspi->s_3apb)
444 << uspi->s_fpbshift))
458 ufs_inode_getfrag(inode, x, fragment, uspi->s_fpb, &err, NULL, NULL,\
472 if (ptr < (1 << (uspi->s_apbshift + uspi->s_fpbshift))) {
473 bh = GET_INODE_PTR(UFS_IND_FRAGMENT + (ptr >> uspi->s_apbshift));
476 ptr -= 1 << (uspi->s_apbshift + uspi->s_fpbshift);
477 if (ptr < (1 << (uspi->s_2apbshift + uspi->s_fpbshift))) {
478 bh = GET_INODE_PTR(UFS_DIND_FRAGMENT + (ptr >> uspi->s_2apbshift));
481 ptr -= 1 << (uspi->s_2apbshift + uspi->s_fpbshift);
482 bh = GET_INODE_PTR(UFS_TIND_FRAGMENT + (ptr >> uspi->s_3apbshift));
483 bh = GET_INDIRECT_PTR((ptr >> uspi->s_2apbshift) & uspi->s_apbmask);
485 bh = GET_INDIRECT_PTR((ptr >> uspi->s_apbshift) & uspi->s_apbmask);
487 bh = GET_INDIRECT_DATABLOCK(ptr & uspi->s_apbmask);
718 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
725 if (ino < UFS_ROOTINO || ino > (uspi->s_ncg * uspi->s_ipg)) {
739 bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino));
761 (inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift;
864 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
870 inode->i_ino > (uspi->s_ncg * uspi->s_ipg)) {
880 if (uspi->fs_magic == UFS2_MAGIC) {