Home
last modified time | relevance | path

Searched refs:uspi (Results 1 – 9 of 9) sorted by relevance

/fs/ufs/
Dsuper.c99 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode() local
102 if (ino < UFS_ROOTINO || ino > uspi->s_ncg * uspi->s_ipg) in ufs_nfs_get_inode()
273 struct ufs_sb_private_info * uspi; in ufs_error() local
278 uspi = UFS_SB(sb)->s_uspi; in ufs_error()
279 usb1 = ubh_get_usb_first(uspi); in ufs_error()
283 ubh_mark_buffer_dirty(USPI_UBH(uspi)); in ufs_error()
307 struct ufs_sb_private_info * uspi; in ufs_panic() local
312 uspi = UFS_SB(sb)->s_uspi; in ufs_panic()
313 usb1 = ubh_get_usb_first(uspi); in ufs_panic()
317 ubh_mark_buffer_dirty(USPI_UBH(uspi)); in ufs_panic()
[all …]
Dballoc.c40 struct ufs_sb_private_info * uspi; in ufs_free_fragments() local
47 uspi = UFS_SB(sb)->s_uspi; in ufs_free_fragments()
52 if (ufs_fragnum(fragment) + count > uspi->s_fpg) in ufs_free_fragments()
57 cgno = ufs_dtog(uspi, fragment); in ufs_free_fragments()
58 bit = ufs_dtogd(uspi, fragment); in ufs_free_fragments()
59 if (cgno >= uspi->s_ncg) { in ufs_free_fragments()
85 inode_sub_bytes(inode, count << uspi->s_fshift); in ufs_free_fragments()
87 uspi->cs_total.cs_nffree += count; in ufs_free_fragments()
97 fs32_sub(sb, &ucg->cg_cs.cs_nffree, uspi->s_fpb); in ufs_free_fragments()
98 uspi->cs_total.cs_nffree -= uspi->s_fpb; in ufs_free_fragments()
[all …]
Dutil.h265 #define ubh_bread(sb,fragment,size) _ubh_bread_(uspi,sb,fragment,size)
275 #define ubh_ubhcpymem(mem,ubh,size) _ubh_ubhcpymem_(uspi,mem,ubh,size)
277 #define ubh_memcpyubh(ubh,mem,size) _ubh_memcpyubh_(uspi,ubh,mem,size)
294 static inline void *get_usb_offset(struct ufs_sb_private_info *uspi, in get_usb_offset() argument
299 index = offset >> uspi->s_fshift; in get_usb_offset()
300 offset &= ~uspi->s_fmask; in get_usb_offset()
301 return uspi->s_ubh.bh[index]->b_data + offset; in get_usb_offset()
304 #define ubh_get_usb_first(uspi) \ argument
305 ((struct ufs_super_block_first *)get_usb_offset((uspi), 0))
307 #define ubh_get_usb_second(uspi) \ argument
[all …]
Dutil.c18 struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi, in _ubh_bread_() argument
24 if (size & ~uspi->s_fmask) in _ubh_bread_()
26 count = size >> uspi->s_fshift; in _ubh_bread_()
47 struct ufs_buffer_head * ubh_bread_uspi (struct ufs_sb_private_info * uspi, in ubh_bread_uspi() argument
52 if (size & ~uspi->s_fmask) in ubh_bread_uspi()
54 count = size >> uspi->s_fshift; in ubh_bread_uspi()
57 USPI_UBH(uspi)->fragment = fragment; in ubh_bread_uspi()
58 USPI_UBH(uspi)->count = count; in ubh_bread_uspi()
60 if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi()
63 USPI_UBH(uspi)->bh[i] = NULL; in ubh_bread_uspi()
[all …]
Dialloc.c59 struct ufs_sb_private_info * uspi; in ufs_free_inode() local
68 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode()
74 if (!((ino > 1) && (ino < (uspi->s_ncg * uspi->s_ipg )))) { in ufs_free_inode()
102 uspi->cs_total.cs_nifree++; in ufs_free_inode()
107 uspi->cs_total.cs_ndir--; in ufs_free_inode()
112 ubh_mark_buffer_dirty (USPI_UBH(uspi)); in ufs_free_inode()
133 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs2_init_inodes_chunk() local
134 sector_t beg = uspi->s_sbbase + in ufs2_init_inodes_chunk()
135 ufs_inotofsba(ucpi->c_cgx * uspi->s_ipg + in ufs2_init_inodes_chunk()
137 sector_t end = beg + uspi->s_fpb; in ufs2_init_inodes_chunk()
[all …]
Dinode.c46 struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi; in ufs_block_to_path() local
47 int ptrs = uspi->s_apb; in ufs_block_to_path()
48 int ptrs_bits = uspi->s_apbshift; in ufs_block_to_path()
126 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_frag_map() local
127 u64 mask = (u64) uspi->s_apbmask>>uspi->s_fpbshift; in ufs_frag_map()
128 int shift = uspi->s_apbshift-uspi->s_fpbshift; in ufs_frag_map()
135 uspi->s_fpbshift, uspi->s_apbmask, in ufs_frag_map()
156 bh = sb_bread(sb, uspi->s_sbbase + in ufs_frag_map()
180 bh = sb_bread(sb, uspi->s_sbbase + in ufs_frag_map()
192 res += uspi->s_sbbase; in ufs_frag_map()
[all …]
Dufs_fs.h133 #define UFS_NDIR_FRAGMENT (UFS_NDADDR << uspi->s_fpbshift)
134 #define UFS_IND_FRAGMENT (UFS_IND_BLOCK << uspi->s_fpbshift)
135 #define UFS_DIND_FRAGMENT (UFS_DIND_BLOCK << uspi->s_fpbshift)
136 #define UFS_TIND_FRAGMENT (UFS_TIND_BLOCK << uspi->s_fpbshift)
207 #define ufs_fsbtodb(uspi, b) ((b) << (uspi)->s_fsbtodb) argument
208 #define ufs_dbtofsb(uspi, b) ((b) >> (uspi)->s_fsbtodb) argument
214 #define ufs_cgbase(c) (uspi->s_fpg * (c))
215 #define ufs_cgstart(c) ((uspi)->fs_magic == UFS2_MAGIC ? ufs_cgbase(c) : \
216 (ufs_cgbase(c) + uspi->s_cgoffset * ((c) & ~uspi->s_cgmask)))
217 #define ufs_cgsblock(c) (ufs_cgstart(c) + uspi->s_sblkno) /* super blk */
[all …]
Dcylinder.c32 struct ufs_sb_private_info * uspi; in ufs_read_cylinder() local
38 uspi = sbi->s_uspi; in ufs_read_cylinder()
43 UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits; in ufs_read_cylinder()
85 struct ufs_sb_private_info * uspi; in ufs_put_cylinder() local
92 uspi = sbi->s_uspi; in ufs_put_cylinder()
100 if (uspi->s_ncg > UFS_MAX_GROUP_LOADED && bitmap_nr >= sbi->s_cg_loaded) { in ufs_put_cylinder()
130 struct ufs_sb_private_info * uspi; in ufs_load_cylinder() local
136 uspi = sbi->s_uspi; in ufs_load_cylinder()
137 if (cgno >= uspi->s_ncg) { in ufs_load_cylinder()
151 if (uspi->s_ncg <= UFS_MAX_GROUP_LOADED) { in ufs_load_cylinder()
Dufs.h154 static inline u64 ufs_dtog(struct ufs_sb_private_info * uspi, u64 b) in ufs_dtog() argument
156 do_div(b, uspi->s_fpg); in ufs_dtog()
160 static inline u32 ufs_dtogd(struct ufs_sb_private_info * uspi, u64 b) in ufs_dtogd() argument
162 return do_div(b, uspi->s_fpg); in ufs_dtogd()