Home
last modified time | relevance | path

Searched refs:sbp (Results 1 – 17 of 17) sorted by relevance

/fs/xfs/
Dxfs_sb.h298 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) argument
300 static inline int xfs_sb_good_version(xfs_sb_t *sbp) in xfs_sb_good_version() argument
303 if (sbp->sb_versionnum >= XFS_SB_VERSION_1 && in xfs_sb_good_version()
304 sbp->sb_versionnum <= XFS_SB_VERSION_3) in xfs_sb_good_version()
308 if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_4) { in xfs_sb_good_version()
309 if ((sbp->sb_versionnum & ~XFS_SB_VERSION_OKREALBITS) || in xfs_sb_good_version()
310 ((sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && in xfs_sb_good_version()
311 (sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS))) in xfs_sb_good_version()
315 if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) in xfs_sb_good_version()
318 if ((sbp->sb_versionnum & XFS_SB_VERSION_SHAREDBIT) && in xfs_sb_good_version()
[all …]
Dxfs_mount.c149 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
152 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count()
153 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count()
156 if (nblocks >> (PAGE_CACHE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count()
159 if (nblocks << (sbp->sb_blocklog - BBSHIFT) > UINT_MAX) in xfs_sb_validate_fsb_count()
171 xfs_sb_t *sbp, in xfs_mount_validate_sb() argument
181 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_mount_validate_sb()
186 if (!xfs_sb_good_version(sbp)) { in xfs_mount_validate_sb()
192 sbp->sb_logstart == 0 && mp->m_logdev_targp == mp->m_ddev_targp)) { in xfs_mount_validate_sb()
200 sbp->sb_logstart != 0 && mp->m_logdev_targp != mp->m_ddev_targp)) { in xfs_mount_validate_sb()
[all …]
Dxfs_rtalloc.c1872 xfs_sb_t *sbp; /* old superblock */ in xfs_growfs_rt() local
1875 sbp = &mp->m_sb; in xfs_growfs_rt()
1882 (nrblocks = in->newblocks) <= sbp->sb_rblocks || in xfs_growfs_rt()
1883 (sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize))) in xfs_growfs_rt()
1885 if ((error = xfs_sb_validate_fsb_count(sbp, nrblocks))) in xfs_growfs_rt()
1902 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt()
1940 for (bmbno = sbp->sb_rbmblocks - in xfs_growfs_rt()
1941 ((sbp->sb_rextents & ((1 << mp->m_blkbit_log) - 1)) != 0); in xfs_growfs_rt()
2005 if (sbp->sb_rbmblocks != nsbp->sb_rbmblocks || in xfs_growfs_rt()
2014 if (nsbp->sb_rextsize != sbp->sb_rextsize) in xfs_growfs_rt()
[all …]
Dxfs_trans.c552 xfs_dsb_t *sbp; in xfs_trans_apply_sb_deltas() local
557 sbp = XFS_BUF_TO_SBP(bp); in xfs_trans_apply_sb_deltas()
571 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas()
573 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas()
575 be64_add_cpu(&sbp->sb_fdblocks, tp->t_fdblocks_delta); in xfs_trans_apply_sb_deltas()
577 be64_add_cpu(&sbp->sb_fdblocks, tp->t_res_fdblocks_delta); in xfs_trans_apply_sb_deltas()
581 be64_add_cpu(&sbp->sb_frextents, tp->t_frextents_delta); in xfs_trans_apply_sb_deltas()
583 be64_add_cpu(&sbp->sb_frextents, tp->t_res_frextents_delta); in xfs_trans_apply_sb_deltas()
586 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas()
590 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
[all …]
Dxfs_dfrag.c118 xfs_bstat_t *sbp = &sxp->sx_stat; in xfs_swap_extents() local
136 sbp = &sxp->sx_stat; in xfs_swap_extents()
206 if ((sbp->bs_ctime.tv_sec != ip->i_d.di_ctime.t_sec) || in xfs_swap_extents()
207 (sbp->bs_ctime.tv_nsec != ip->i_d.di_ctime.t_nsec) || in xfs_swap_extents()
208 (sbp->bs_mtime.tv_sec != ip->i_d.di_mtime.t_sec) || in xfs_swap_extents()
209 (sbp->bs_mtime.tv_nsec != ip->i_d.di_mtime.t_nsec)) { in xfs_swap_extents()
Dxfs_attr_leaf.c570 xfs_attr_sf_sort_t *sbuf, *sbp; in xfs_attr_shortform_list() local
633 sbp = sbuf = kmem_alloc(sbsize, KM_SLEEP); in xfs_attr_shortform_list()
652 sbp->entno = i; in xfs_attr_shortform_list()
653 sbp->hash = xfs_da_hashname((char *)sfe->nameval, sfe->namelen); in xfs_attr_shortform_list()
654 sbp->name = (char *)sfe->nameval; in xfs_attr_shortform_list()
655 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list()
657 sbp->valuelen = sfe->valuelen; in xfs_attr_shortform_list()
658 sbp->flags = sfe->flags; in xfs_attr_shortform_list()
660 sbp++; in xfs_attr_shortform_list()
675 for (sbp = sbuf, i = 0; i < nsbuf; i++, sbp++) { in xfs_attr_shortform_list()
[all …]
Dxfs_log_recover.c3782 xfs_sb_t *sbp; in xlog_do_recover() local
3833 sbp = &log->l_mp->m_sb; in xlog_do_recover()
3834 xfs_sb_from_disk(sbp, XFS_BUF_TO_SBP(bp)); in xlog_do_recover()
3835 ASSERT(sbp->sb_magicnum == XFS_SB_MAGIC); in xlog_do_recover()
3836 ASSERT(xfs_sb_good_version(sbp)); in xlog_do_recover()
3964 xfs_sb_t *sbp; in xlog_recover_check_summary() local
4003 sbp = &mp->m_sb; in xlog_recover_check_summary()
4004 xfs_sb_from_disk(sbp, XFS_BUF_TO_SBP(sbbp)); in xlog_recover_check_summary()
4007 sbp->sb_icount, itotal); in xlog_recover_check_summary()
4010 sbp->sb_ifree, ifree); in xlog_recover_check_summary()
[all …]
/fs/ufs/
Dswab.h26 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument
28 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs64_to_cpu()
35 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument
37 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs64()
44 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument
46 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_to_cpu()
53 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument
55 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs32()
62 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument
64 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_add()
[all …]
/fs/freevxfs/
Dvxfs_super.c79 vxfs_put_super(struct super_block *sbp) in vxfs_put_super() argument
81 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_put_super()
148 static int vxfs_fill_super(struct super_block *sbp, void *dp, int silent) in vxfs_fill_super() argument
157 sbp->s_flags |= MS_RDONLY; in vxfs_fill_super()
165 bsize = sb_min_blocksize(sbp, BLOCK_SIZE); in vxfs_fill_super()
171 bp = sb_bread(sbp, 1); in vxfs_fill_super()
198 sbp->s_magic = rsbp->vs_magic; in vxfs_fill_super()
199 sbp->s_fs_info = infp; in vxfs_fill_super()
206 if (!sb_set_blocksize(sbp, rsbp->vs_bsize)) { in vxfs_fill_super()
211 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
[all …]
Dvxfs_olt.c57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument
59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument
79 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt()
85 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
106 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
Dvxfs_fshead.c107 vxfs_read_fshead(struct super_block *sbp) in vxfs_read_fshead() argument
109 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_fshead()
113 vip = vxfs_blkiget(sbp, infp->vsi_iext, infp->vsi_fshino); in vxfs_read_fshead()
130 infp->vsi_fship = vxfs_get_fake_inode(sbp, vip); in vxfs_read_fshead()
156 tip = vxfs_blkiget(sbp, infp->vsi_iext, sfp->fsh_ilistino[0]); in vxfs_read_fshead()
160 infp->vsi_stilist = vxfs_get_fake_inode(sbp, tip); in vxfs_read_fshead()
172 tip = vxfs_stiget(sbp, pfp->fsh_ilistino[0]); in vxfs_read_fshead()
175 infp->vsi_ilist = vxfs_get_fake_inode(sbp, tip); in vxfs_read_fshead()
Dvxfs_inode.c88 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument
93 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
94 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
95 bp = sb_bread(sbp, block); in vxfs_blkiget()
174 vxfs_stiget(struct super_block *sbp, ino_t ino) in vxfs_stiget() argument
178 vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_stilist); in vxfs_stiget()
258 vxfs_get_fake_inode(struct super_block *sbp, struct vxfs_inode_info *vip) in vxfs_get_fake_inode() argument
262 if ((ip = new_inode(sbp))) { in vxfs_get_fake_inode()
292 vxfs_iget(struct super_block *sbp, ino_t ino) in vxfs_iget() argument
298 ip = iget_locked(sbp, ino); in vxfs_iget()
[all …]
Dvxfs_lookup.c49 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_CACHE_SIZE / (sbp)->s_blocksize)) argument
244 struct super_block *sbp = ip->i_sb; in vxfs_readdir() local
245 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
273 pblocks = VXFS_BLOCK_PER_PAGE(sbp); in vxfs_readdir()
277 block = (u_long)(pos >> sbp->s_blocksize_bits) % pblocks; in vxfs_readdir()
Dvxfs_inode.h52 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument
53 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
Dvxfs.h260 #define VXFS_SBI(sbp) \ argument
261 ((struct vxfs_sb_info *)(sbp)->s_fs_info)
/fs/xfs/linux-2.6/
Dxfs_super.c669 xfs_buf_t *sbp = xfs_getsb(mp, 0); in xfs_barrier_test() local
672 XFS_BUF_UNDONE(sbp); in xfs_barrier_test()
673 XFS_BUF_UNREAD(sbp); in xfs_barrier_test()
674 XFS_BUF_UNDELAYWRITE(sbp); in xfs_barrier_test()
675 XFS_BUF_WRITE(sbp); in xfs_barrier_test()
676 XFS_BUF_UNASYNC(sbp); in xfs_barrier_test()
677 XFS_BUF_ORDERED(sbp); in xfs_barrier_test()
679 xfsbdstrat(mp, sbp); in xfs_barrier_test()
680 error = xfs_iowait(sbp); in xfs_barrier_test()
688 XFS_BUF_DONE(sbp); in xfs_barrier_test()
[all …]
/fs/
Dcompat_ioctl.c676 compat_uptr_t sbp; /* [i], [*o] points to sense_buffer memory */ member
762 unsigned char __user *sbp; in sg_ioctl_trans() local
768 if (get_user(data, &sgio32->sbp)) in sg_ioctl_trans()
770 sbp = compat_ptr(data); in sg_ioctl_trans()
773 put_user(sbp, &sgio->sbp)) in sg_ioctl_trans()