Home
last modified time | relevance | path

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

12

/linux/fs/xfs/libxfs/
A Dxfs_sb.c259 sbp->sb_rextents != div_u64(sbp->sb_rblocks, sbp->sb_rextsize) || in xfs_validate_rt_geometry()
285 (sbp->sb_fdblocks > sbp->sb_dblocks || in xfs_validate_sb_write()
287 sbp->sb_ifree > sbp->sb_icount)) { in xfs_validate_sb_write()
454 sbp->sb_inopblock != howmany(sbp->sb_blocksize,sbp->sb_inodesize) || in xfs_validate_sb_common()
459 (sbp->sb_blocklog - sbp->sb_inodelog != sbp->sb_inopblog) || in xfs_validate_sb_common()
464 sbp->sb_dblocks > XFS_MAX_DBLOCKS(sbp) || in xfs_validate_sb_common()
465 sbp->sb_dblocks < XFS_MIN_DBLOCKS(sbp) || in xfs_validate_sb_common()
501 sbp->sb_logsectsize, 1U << sbp->sb_logsectlog); in xfs_validate_sb_common()
507 sbp->sb_logsectsize, sbp->sb_logsectlog); in xfs_validate_sb_common()
512 if (sbp->sb_logsunit % sbp->sb_blocksize) { in xfs_validate_sb_common()
[all …]
A Dxfs_format.h279 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) argument
292 return sbp->sb_bad_features2 != sbp->sb_features2; in xfs_sb_has_mismatched_features2()
297 return xfs_sb_is_v5(sbp) || in xfs_sb_version_hasmorebits()
345 struct xfs_sb *sbp, in xfs_sb_has_compat_feature() argument
363 struct xfs_sb *sbp, in xfs_sb_has_ro_compat_feature() argument
390 struct xfs_sb *sbp, in xfs_sb_has_incompat_feature() argument
402 struct xfs_sb *sbp, in xfs_sb_has_incompat_log_feature() argument
410 struct xfs_sb *sbp) in xfs_sb_remove_incompat_log_features() argument
417 struct xfs_sb *sbp, in xfs_sb_add_incompat_log_features() argument
425 return xfs_sb_is_v5(sbp) && (sbp->sb_features_log_incompat & in xfs_sb_version_haslogxattrs()
[all …]
A Dxfs_sb.h19 extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
21 struct xfs_sb *sbp);
24 extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
25 extern bool xfs_sb_good_version(struct xfs_sb *sbp);
26 extern uint64_t xfs_sb_version_to_features(struct xfs_sb *sbp);
43 bool xfs_validate_rt_geometry(struct xfs_sb *sbp);
/linux/arch/mips/sibyte/common/
A Dsb_tbprof.c186 sbp.tb_armed = 1; in arm_tb()
197 u64 *p = sbp.sbprof_tbbuf[sbp.next_tb_sample++]; in sbprof_tb_intr()
219 if (!sbp.tb_enable) { in sbprof_tb_intr()
223 sbp.tb_armed = 0; in sbprof_tb_intr()
233 sbp.tb_armed = 0; in sbprof_tb_intr()
234 if (!sbp.tb_enable) in sbprof_tb_intr()
366 if (sbp.tb_enable) { in sbprof_zbprof_stop()
373 err = wait_event_interruptible(sbp.tb_sync, !sbp.tb_armed); in sbprof_zbprof_stop()
379 sbp.tb_enable = 0; in sbprof_zbprof_stop()
412 sbp.open = SB_OPEN; in sbprof_tb_open()
[all …]
/linux/fs/ufs/
A Dswab.h29 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs64_to_cpu()
36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument
38 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs64()
47 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_to_cpu()
54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument
56 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs32()
65 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_add()
74 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_sub()
83 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs16_to_cpu()
92 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs16()
[all …]
/linux/fs/nilfs2/
A Dthe_nilfs.c170 struct nilfs_super_block *sbp) in nilfs_store_log_cursor() argument
258 if (!nilfs_valid_sb(sbp[1])) { in load_nilfs()
269 memcpy(sbp[0], sbp[1], nilfs->ns_sbsize); in load_nilfs()
517 if (!sbp || le16_to_cpu(sbp->s_magic) != NILFS_SUPER_MAGIC) in nilfs_valid_sb()
522 crc = crc32_le(le32_to_cpu(sbp->s_crc_seed), (unsigned char *)sbp, in nilfs_valid_sb()
611 if (!sbp[0]) { in nilfs_load_super_block()
612 if (!sbp[1]) { in nilfs_load_super_block()
619 } else if (!sbp[1]) { in nilfs_load_super_block()
638 sbp[1] = NULL; in nilfs_load_super_block()
674 *sbpp = sbp[0]; in nilfs_load_super_block()
[all …]
A Dsuper.c98 if (sbp[1]) in nilfs_set_error()
261 memcpy(sbp[0], sbp[1], nilfs->ns_sbsize); in nilfs_prepare_super()
268 memcpy(sbp[1], sbp[0], nilfs->ns_sbsize); in nilfs_prepare_super()
274 return sbp; in nilfs_prepare_super()
292 sbp[1]->s_wtime = sbp[0]->s_wtime; in nilfs_commit_super()
321 if (sbp) { in nilfs_cleanup_super()
324 if (sbp[1] && sbp[0]->s_last_cno == sbp[1]->s_last_cno) { in nilfs_cleanup_super()
330 sbp[1]->s_state = sbp[0]->s_state; in nilfs_cleanup_super()
482 memcpy(sbp[1], sbp[0], nilfs->ns_sbsize); in nilfs_resize_fs()
812 if (!sbp) in nilfs_setup_super()
[all …]
/linux/fs/freevxfs/
A Dvxfs_super.c134 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic()
194 sbp->s_flags |= SB_RDONLY; in vxfs_fill_super()
208 sbp->s_op = &vxfs_super_ops; in vxfs_fill_super()
209 sbp->s_fs_info = infp; in vxfs_fill_super()
210 sbp->s_time_min = 0; in vxfs_fill_super()
211 sbp->s_time_max = U32_MAX; in vxfs_fill_super()
246 if (!sb_set_blocksize(sbp, j)) { in vxfs_fill_super()
251 if (vxfs_read_olt(sbp, bsize)) { in vxfs_fill_super()
256 if (vxfs_read_fshead(sbp)) { in vxfs_fill_super()
266 sbp->s_root = d_make_root(root); in vxfs_fill_super()
[all …]
A Dvxfs_olt.c33 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument
35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock()
36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
53 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument
55 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt()
60 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
A Dvxfs_inode.c137 vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) in vxfs_blkiget() argument
143 inode = new_inode(sbp); in vxfs_blkiget()
148 block = extent + ((ino * VXFS_ISIZE) / sbp->s_blocksize); in vxfs_blkiget()
149 offset = ((ino % (sbp->s_blocksize / VXFS_ISIZE)) * VXFS_ISIZE); in vxfs_blkiget()
150 bp = sb_bread(sbp, block); in vxfs_blkiget()
157 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); in vxfs_blkiget()
222 vxfs_stiget(struct super_block *sbp, ino_t ino) in vxfs_stiget() argument
227 inode = new_inode(sbp); in vxfs_stiget()
251 vxfs_iget(struct super_block *sbp, ino_t ino) in vxfs_iget() argument
258 ip = iget_locked(sbp, ino); in vxfs_iget()
[all …]
A Dvxfs_fshead.c84 vxfs_read_fshead(struct super_block *sbp) in vxfs_read_fshead() argument
86 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_fshead()
90 infp->vsi_fship = vxfs_blkiget(sbp, infp->vsi_iext, infp->vsi_fshino); in vxfs_read_fshead()
128 infp->vsi_stilist = vxfs_blkiget(sbp, infp->vsi_iext, in vxfs_read_fshead()
140 infp->vsi_ilist = vxfs_stiget(sbp, fs32_to_cpu(infp, pfp->fsh_ilistino[0])); in vxfs_read_fshead()
A Dvxfs_lookup.c25 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_SIZE / (sbp)->s_blocksize)) argument
193 struct super_block *sbp = ip->i_sb; in vxfs_readdir() local
194 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
196 struct vxfs_sb_info *sbi = VXFS_SBI(sbp); in vxfs_readdir()
A Dvxfs_inode.h28 #define VXFS_TYPED_PER_BLOCK(sbp) \ argument
29 ((sbp)->s_blocksize / sizeof(struct vxfs_typed))
/linux/fs/xfs/
A Dxfs_attr_list.c138 sbp->entno = i; in xfs_attr_shortform_list()
139 sbp->name = sfe->nameval; in xfs_attr_shortform_list()
144 sbp->flags = sfe->flags; in xfs_attr_shortform_list()
150 sbp++; in xfs_attr_shortform_list()
165 for (sbp = sbuf, i = 0; i < nsbuf; i++, sbp++) { in xfs_attr_shortform_list()
187 !xfs_attr_namecheck(sbp->flags, sbp->name, in xfs_attr_shortform_list()
194 sbp->flags, in xfs_attr_shortform_list()
195 sbp->name, in xfs_attr_shortform_list()
196 sbp->namelen, in xfs_attr_shortform_list()
197 sbp->value, in xfs_attr_shortform_list()
[all …]
A Dxfs_mount.c132 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() argument
160 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local
230 sector_size = sbp->sb_sectsize; in xfs_readsb()
269 struct xfs_sb *sbp = &mp->m_sb; in xfs_check_new_dalign() local
366 sbp->sb_unit = mp->m_dalign; in xfs_update_alignment()
367 sbp->sb_width = mp->m_swidth; in xfs_update_alignment()
370 mp->m_dalign = sbp->sb_unit; in xfs_update_alignment()
371 mp->m_swidth = sbp->sb_width; in xfs_update_alignment()
656 xfs_sb_mount_common(mp, sbp); in xfs_mountfs()
676 sbp->sb_features2 |= sbp->sb_bad_features2; in xfs_mountfs()
[all …]
A Dxfs_trans.c478 struct xfs_dsb *sbp; in xfs_trans_apply_sb_deltas() local
483 sbp = bp->b_addr; in xfs_trans_apply_sb_deltas()
490 be64_add_cpu(&sbp->sb_icount, tp->t_icount_delta); in xfs_trans_apply_sb_deltas()
492 be64_add_cpu(&sbp->sb_ifree, tp->t_ifree_delta); in xfs_trans_apply_sb_deltas()
520 be64_add_cpu(&sbp->sb_frextents, rtxdelta); in xfs_trans_apply_sb_deltas()
526 be64_add_cpu(&sbp->sb_dblocks, tp->t_dblocks_delta); in xfs_trans_apply_sb_deltas()
530 be32_add_cpu(&sbp->sb_agcount, tp->t_agcount_delta); in xfs_trans_apply_sb_deltas()
534 sbp->sb_imax_pct += tp->t_imaxpct_delta; in xfs_trans_apply_sb_deltas()
546 be64_add_cpu(&sbp->sb_rblocks, tp->t_rblocks_delta); in xfs_trans_apply_sb_deltas()
554 sbp->sb_rextslog += tp->t_rextslog_delta; in xfs_trans_apply_sb_deltas()
[all …]
A Dxfs_super.c283 xfs_sb_t *sbp = &mp->m_sb; in xfs_set_inode_alloc() local
295 icount = sbp->sb_dblocks * sbp->sb_imax_pct; in xfs_set_inode_alloc()
297 icount += sbp->sb_agblocks - 1; in xfs_set_inode_alloc()
298 do_div(icount, sbp->sb_agblocks); in xfs_set_inode_alloc()
824 xfs_sb_t *sbp = &mp->m_sb; in xfs_fs_statfs() local
850 statp->f_bsize = sbp->sb_blocksize; in xfs_fs_statfs()
851 lsize = sbp->sb_logstart ? sbp->sb_logblocks : 0; in xfs_fs_statfs()
870 sbp->sb_icount); in xfs_fs_statfs()
1817 struct xfs_sb *sbp = &mp->m_sb; in xfs_remount_rw() local
1826 if (xfs_sb_is_v5(sbp) && in xfs_remount_rw()
[all …]
A Dxfs_rtalloc.c1022 struct xfs_sb *sbp; /* filesystem superblock copy in mount */ in xfs_rtmount_init() local
1026 sbp = &mp->m_sb; in xfs_rtmount_init()
1027 if (sbp->sb_rblocks == 0) in xfs_rtmount_init()
1034 mp->m_rsumlevels = sbp->sb_rextslog + 1; in xfs_rtmount_init()
1141 xfs_sb_t *sbp; in xfs_rtmount_inodes() local
1143 sbp = &mp->m_sb; in xfs_rtmount_inodes()
1144 error = xfs_iget(mp, NULL, sbp->sb_rbmino, 0, 0, &mp->m_rbmip); in xfs_rtmount_inodes()
1155 error = xfs_iget(mp, NULL, sbp->sb_rsumino, 0, 0, &mp->m_rsumip); in xfs_rtmount_inodes()
1166 error = xfs_alloc_rsum_cache(mp, sbp->sb_rbmblocks); in xfs_rtmount_inodes()
A Dxfs_ioctl.c964 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_getlabel() local
968 BUILD_BUG_ON(sizeof(sbp->sb_fname) > FSLABEL_MAX); in xfs_ioc_getlabel()
973 strncpy(label, sbp->sb_fname, XFSLABEL_MAX); in xfs_ioc_getlabel()
987 struct xfs_sb *sbp = &mp->m_sb; in xfs_ioc_setlabel() local
1003 if (len > sizeof(sbp->sb_fname)) in xfs_ioc_setlabel()
1011 memset(sbp->sb_fname, 0, sizeof(sbp->sb_fname)); in xfs_ioc_setlabel()
1012 memcpy(sbp->sb_fname, label, len); in xfs_ioc_setlabel()
/linux/drivers/s390/net/
A Dqeth_l2_sys.c26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show()
28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show()
42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show()
54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show()
95 else if (card->options.sbp.reflect_promisc) in qeth_bridge_port_role_store()
101 card->options.sbp.role = role; in qeth_bridge_port_role_store()
103 card->options.sbp.role = role; in qeth_bridge_port_role_store()
137 enabled = card->options.sbp.hostnotification; in qeth_bridgeport_hostnotification_show()
164 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store()
185 if (card->options.sbp.reflect_promisc) { in qeth_bridgeport_reflect_show()
[all …]
A Dqeth_l2.h34 return card->options.sbp.role || in qeth_bridgeport_is_in_use()
35 card->options.sbp.reflect_promisc || in qeth_bridgeport_is_in_use()
36 card->options.sbp.hostnotification; in qeth_bridgeport_is_in_use()
A Dqeth_l2_main.c406 card->options.sbp.role = role; in qeth_l2_promisc_to_bridge()
422 if (card->options.sbp.reflect_promisc) in qeth_l2_set_promisc_mode()
1154 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs()
1554 struct qeth_ipacmd_setbridgeport *sbp = &cmd->data.sbp; in qeth_bridgeport_makerc() local
1557 u16 sbp_rc = sbp->hdr.return_code; in qeth_bridgeport_makerc()
1665 hdr = &__ipa_cmd(iob)->data.sbp.hdr; in qeth_sbp_build_cmd()
1711 card->options.sbp.supported_funcs = 0; in qeth_bridgeport_query_support()
1730 qports = &cmd->data.sbp.data.port_data; in qeth_bridgeport_query_ports_cb()
1853 if (!card->options.sbp.supported_funcs) in qeth_bridgeport_an_set()
2345 if (card->options.sbp.supported_funcs) { in qeth_l2_set_online()
[all …]
/linux/fs/reiserfs/
A Dreiserfs.h114 #define sb_block_count(sbp) (le32_to_cpu((sbp)->s_v1.s_block_count)) argument
116 #define sb_free_blocks(sbp) (le32_to_cpu((sbp)->s_v1.s_free_blocks)) argument
118 #define sb_root_block(sbp) (le32_to_cpu((sbp)->s_v1.s_root_block)) argument
150 #define sb_blocksize(sbp) (le16_to_cpu((sbp)->s_v1.s_blocksize)) argument
152 #define sb_oid_maxsize(sbp) (le16_to_cpu((sbp)->s_v1.s_oid_maxsize)) argument
154 #define sb_oid_cursize(sbp) (le16_to_cpu((sbp)->s_v1.s_oid_cursize)) argument
158 #define sb_fs_state(sbp) (le16_to_cpu((sbp)->s_v1.s_fs_state)) argument
166 #define sb_bmap_nr(sbp) (le16_to_cpu((sbp)->s_v1.s_bmap_nr)) argument
168 #define sb_version(sbp) (le16_to_cpu((sbp)->s_v1.s_version)) argument
171 #define sb_mnt_count(sbp) (le16_to_cpu((sbp)->s_mnt_count)) argument
[all …]
/linux/drivers/scsi/
A Dscsi_ioctl.c394 if (scmd->sense_len && hdr->sbp) { in scsi_complete_sghdr_rq()
397 if (!copy_to_user(hdr->sbp, scmd->sense_buffer, len)) in scsi_complete_sghdr_rq()
630 .sbp = (uintptr_t)hdr->sbp, in put_sg_io_hdr()
678 .sbp = compat_ptr(hdr32.sbp), in get_sg_io_hdr()
813 hdr.sbp = cgc.sense; in scsi_cdrom_send_packet()
814 if (hdr.sbp) in scsi_cdrom_send_packet()
/linux/include/scsi/
A Dsg.h51 void __user *sbp; /* [i], [*o] points to sense_buffer memory */ member
80 compat_uptr_t sbp; /* [i], [*o] points to sense_buffer memory */ member

Completed in 72 milliseconds

12