Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 103) sorted by relevance

12345

/fs/xfs/
Dxfs_buf.c52 static int __xfs_buf_submit(struct xfs_buf *bp, bool wait);
56 struct xfs_buf *bp) in xfs_buf_submit() argument
58 return __xfs_buf_submit(bp, !(bp->b_flags & XBF_ASYNC)); in xfs_buf_submit()
63 struct xfs_buf *bp) in xfs_buf_is_vmapped() argument
72 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
77 struct xfs_buf *bp) in xfs_buf_vmap_len() argument
79 return (bp->b_page_count * PAGE_SIZE); in xfs_buf_vmap_len()
97 struct xfs_buf *bp) in xfs_buf_ioacct_inc() argument
99 if (bp->b_flags & XBF_NO_IOACCT) in xfs_buf_ioacct_inc()
102 ASSERT(bp->b_flags & XBF_ASYNC); in xfs_buf_ioacct_inc()
[all …]
Dxfs_trans_buf.c63 struct xfs_buf *bp, in _xfs_trans_bjoin() argument
68 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin()
75 xfs_buf_item_init(bp, tp->t_mountp); in _xfs_trans_bjoin()
76 bip = bp->b_log_item; in _xfs_trans_bjoin()
93 bp->b_transp = tp; in _xfs_trans_bjoin()
100 struct xfs_buf *bp) in xfs_trans_bjoin() argument
102 _xfs_trans_bjoin(tp, bp, 0); in xfs_trans_bjoin()
103 trace_xfs_trans_bjoin(bp->b_log_item); in xfs_trans_bjoin()
124 struct xfs_buf *bp; in xfs_trans_get_buf_map() local
138 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
[all …]
Dxfs_buf_item.c60 struct xfs_buf *bp, in xfs_buf_item_straddle() argument
67 first = xfs_buf_offset(bp, offset + (first_bit << XFS_BLF_SHIFT)); in xfs_buf_item_straddle()
68 last = xfs_buf_offset(bp, in xfs_buf_item_straddle()
92 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size_segment() local
115 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) in xfs_buf_item_size_segment()
155 xfs_buf_item_straddle(bp, offset, first_bit, nbits)) { in xfs_buf_item_size_segment()
193 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size() local
240 offset += BBTOB(bp->b_maps[i].bm_len); in xfs_buf_item_size()
256 struct xfs_buf *bp, in xfs_buf_item_copy_iovec() argument
263 xfs_buf_offset(bp, offset), in xfs_buf_item_copy_iovec()
[all …]
Dxfs_buf.h124 xfs_failaddr_t (*verify_struct)(struct xfs_buf *bp);
254 int _xfs_buf_read(struct xfs_buf *bp, xfs_buf_flags_t flags);
255 void xfs_buf_hold(struct xfs_buf *bp);
264 #define xfs_buf_islocked(bp) \ argument
265 ((bp)->b_sema.count <= 0)
267 static inline void xfs_buf_relse(struct xfs_buf *bp) in xfs_buf_relse() argument
269 xfs_buf_unlock(bp); in xfs_buf_relse()
270 xfs_buf_rele(bp); in xfs_buf_relse()
274 extern int xfs_bwrite(struct xfs_buf *bp);
276 extern void __xfs_buf_ioerror(struct xfs_buf *bp, int error,
[all …]
Dxfs_buf_item_recover.c213 struct xfs_buf *bp, in xlog_recover_validate_buf_type() argument
217 struct xfs_da_blkinfo *info = bp->b_addr; in xlog_recover_validate_buf_type()
234 magic32 = be32_to_cpu(*(__be32 *)bp->b_addr); in xlog_recover_validate_buf_type()
235 magic16 = be16_to_cpu(*(__be16*)bp->b_addr); in xlog_recover_validate_buf_type()
242 bp->b_ops = &xfs_bnobt_buf_ops; in xlog_recover_validate_buf_type()
246 bp->b_ops = &xfs_cntbt_buf_ops; in xlog_recover_validate_buf_type()
250 bp->b_ops = &xfs_inobt_buf_ops; in xlog_recover_validate_buf_type()
254 bp->b_ops = &xfs_finobt_buf_ops; in xlog_recover_validate_buf_type()
258 bp->b_ops = &xfs_bmbt_buf_ops; in xlog_recover_validate_buf_type()
261 bp->b_ops = &xfs_rmapbt_buf_ops; in xlog_recover_validate_buf_type()
[all …]
Dxfs_attr_inactive.c85 struct xfs_buf *bp) in xfs_attr3_leaf_inactive() argument
88 struct xfs_mount *mp = bp->b_mount; in xfs_attr3_leaf_inactive()
89 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_inactive()
120 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive()
133 struct xfs_buf *bp, in xfs_attr3_node_inactive() argument
148 xfs_buf_mark_corrupt(bp); in xfs_attr3_node_inactive()
149 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
153 xfs_da3_node_hdr_from_disk(dp->i_mount, &ichdr, bp->b_addr); in xfs_attr3_node_inactive()
154 parent_blkno = xfs_buf_daddr(bp); in xfs_attr3_node_inactive()
156 xfs_trans_brelse(*trans, bp); in xfs_attr3_node_inactive()
[all …]
Dxfs_attr_list.c212 struct xfs_buf *bp; in xfs_attr_node_list_lookup() local
221 error = xfs_da3_node_read(tp, dp, cursor->blkno, &bp, in xfs_attr_node_list_lookup()
225 node = bp->b_addr; in xfs_attr_node_list_lookup()
260 xfs_trans_brelse(tp, bp); in xfs_attr_node_list_lookup()
273 *pbp = bp; in xfs_attr_node_list_lookup()
277 xfs_buf_mark_corrupt(bp); in xfs_attr_node_list_lookup()
278 xfs_trans_brelse(tp, bp); in xfs_attr_node_list_lookup()
290 struct xfs_buf *bp; in xfs_attr_node_list() local
304 bp = NULL; in xfs_attr_node_list()
306 error = xfs_da3_node_read(context->tp, dp, cursor->blkno, &bp, in xfs_attr_node_list()
[all …]
Dxfs_dir2_readdir.c144 struct xfs_buf *bp; /* buffer for block */ in xfs_dir2_block_getdents() local
160 error = xfs_dir3_block_read(args->trans, dp, &bp); in xfs_dir2_block_getdents()
170 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_getdents()
176 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xfs_dir2_block_getdents()
180 struct xfs_dir2_data_unused *dup = bp->b_addr + offset; in xfs_dir2_block_getdents()
181 struct xfs_dir2_data_entry *dep = bp->b_addr + offset; in xfs_dir2_block_getdents()
230 xfs_trans_brelse(args->trans, bp); in xfs_dir2_block_getdents()
248 struct xfs_buf *bp = NULL; in xfs_dir2_leaf_readbuf() local
282 error = xfs_dir3_data_read(args->trans, dp, map.br_startoff, 0, &bp); in xfs_dir2_leaf_readbuf()
332 *bpp = bp; in xfs_dir2_leaf_readbuf()
[all …]
/fs/afs/
Dfsclient.c23 const __be32 *bp = *_bp; in xdr_decode_AFSFid() local
25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
28 *_bp = bp; in xdr_decode_AFSFid()
34 static void xdr_dump_bad(const __be32 *bp) in xdr_dump_bad() argument
41 memcpy(x, bp, 16); in xdr_dump_bad()
42 bp += 4; in xdr_dump_bad()
47 memcpy(x, bp, 4); in xdr_dump_bad()
142 const __be32 *bp = *_bp; in xdr_decode_AFSCallBack() local
[all …]
Dyfsclient.c31 static __be32 *xdr_encode_u32(__be32 *bp, u32 n) in xdr_encode_u32() argument
33 *bp++ = htonl(n); in xdr_encode_u32()
34 return bp; in xdr_encode_u32()
37 static __be32 *xdr_encode_u64(__be32 *bp, u64 n) in xdr_encode_u64() argument
39 struct yfs_xdr_u64 *x = (void *)bp; in xdr_encode_u64()
42 return bp + xdr_size(x); in xdr_encode_u64()
45 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid() argument
47 struct yfs_xdr_YFSFid *x = (void *)bp; in xdr_encode_YFSFid()
53 return bp + xdr_size(x); in xdr_encode_YFSFid()
61 static __be32 *xdr_encode_string(__be32 *bp, const char *p, unsigned int len) in xdr_encode_string() argument
[all …]
Dvlclient.c137 __be32 *bp; in afs_vl_get_entry_by_name_u() local
160 bp = call->request; in afs_vl_get_entry_by_name_u()
161 *bp++ = htonl(VLGETENTRYBYNAMEU); in afs_vl_get_entry_by_name_u()
162 *bp++ = htonl(volnamesz); in afs_vl_get_entry_by_name_u()
163 memcpy(bp, volname, volnamesz); in afs_vl_get_entry_by_name_u()
165 memset((void *)bp + volnamesz, 0, padsz); in afs_vl_get_entry_by_name_u()
184 __be32 *bp; in afs_deliver_vl_get_addrs_u() local
205 bp = call->buffer + sizeof(struct afs_uuid__xdr); in afs_deliver_vl_get_addrs_u()
206 uniquifier = ntohl(*bp++); in afs_deliver_vl_get_addrs_u()
207 nentries = ntohl(*bp++); in afs_deliver_vl_get_addrs_u()
[all …]
/fs/jfs/
Djfs_logmgr.c175 static void lbmFree(struct lbuf * bp);
176 static void lbmfree(struct lbuf * bp);
178 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
179 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
180 static int lbmIOWait(struct lbuf * bp, int flag);
182 static void lbmStartIO(struct lbuf * bp);
348 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord() local
367 bp = (struct lbuf *) log->bp; in lmWriteRecord()
368 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
418 bp = log->bp; in lmWriteRecord()
[all …]
/fs/xfs/libxfs/
Dxfs_symlink_remote.c41 struct xfs_buf *bp) in xfs_symlink_hdr_set() argument
43 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_set()
54 dsl->sl_blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_symlink_hdr_set()
55 bp->b_ops = &xfs_symlink_buf_ops; in xfs_symlink_hdr_set()
70 struct xfs_buf *bp) in xfs_symlink_hdr_ok() argument
72 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_ok()
87 struct xfs_buf *bp) in xfs_symlink_verify() argument
89 struct xfs_mount *mp = bp->b_mount; in xfs_symlink_verify()
90 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_verify()
94 if (!xfs_verify_magic(bp, dsl->sl_magic)) in xfs_symlink_verify()
[all …]
Dxfs_rtbitmap.c31 struct xfs_buf *bp) in xfs_rtbuf_verify_read() argument
38 struct xfs_buf *bp) in xfs_rtbuf_verify_write() argument
61 struct xfs_buf *bp; /* block buffer, result */ in xfs_rtbuf_get() local
79 mp->m_bsize, 0, &bp, &xfs_rtbuf_ops); in xfs_rtbuf_get()
83 xfs_trans_buf_set_type(tp, bp, issum ? XFS_BLFT_RTSUMMARY_BUF in xfs_rtbuf_get()
85 *bpp = bp; in xfs_rtbuf_get()
104 struct xfs_buf *bp; /* buf for the block */ in xfs_rtfind_back() local
119 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
123 bufp = bp->b_addr; in xfs_rtfind_back()
156 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
[all …]
Dxfs_dir2_block.c27 static void xfs_dir2_block_log_leaf(xfs_trans_t *tp, struct xfs_buf *bp,
29 static void xfs_dir2_block_log_tail(xfs_trans_t *tp, struct xfs_buf *bp);
48 struct xfs_buf *bp) in xfs_dir3_block_verify() argument
50 struct xfs_mount *mp = bp->b_mount; in xfs_dir3_block_verify()
51 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_verify()
53 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_block_verify()
59 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_dir3_block_verify()
64 return __xfs_dir3_data_check(NULL, bp); in xfs_dir3_block_verify()
69 struct xfs_buf *bp) in xfs_dir3_block_read_verify() argument
71 struct xfs_mount *mp = bp->b_mount; in xfs_dir3_block_read_verify()
[all …]
Dxfs_da_btree.c102 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
185 struct xfs_buf *bp, in xfs_da3_blkinfo_verify() argument
188 struct xfs_mount *mp = bp->b_mount; in xfs_da3_blkinfo_verify()
191 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify()
197 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_da3_blkinfo_verify()
208 struct xfs_buf *bp) in xfs_da3_node_verify() argument
210 struct xfs_mount *mp = bp->b_mount; in xfs_da3_node_verify()
211 struct xfs_da_intnode *hdr = bp->b_addr; in xfs_da3_node_verify()
217 fa = xfs_da3_blkinfo_verify(bp, bp->b_addr); in xfs_da3_node_verify()
243 struct xfs_buf *bp) in xfs_da3_node_write_verify() argument
[all …]
Dxfs_dir2_node.c27 static int xfs_dir2_leafn_add(struct xfs_buf *bp, xfs_da_args_t *args,
32 static int xfs_dir2_leafn_remove(xfs_da_args_t *args, struct xfs_buf *bp,
62 struct xfs_buf *bp) in xfs_dir3_leafn_check() argument
64 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leafn_check()
70 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leafn_check()
71 if (be64_to_cpu(leaf3->info.blkno) != xfs_buf_daddr(bp)) in xfs_dir3_leafn_check()
82 struct xfs_buf *bp) in xfs_dir3_leaf_check() argument
86 fa = xfs_dir3_leafn_check(dp, bp); in xfs_dir3_leaf_check()
90 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_leaf_check()
95 #define xfs_dir3_leaf_check(dp, bp) argument
[all …]
Dxfs_attr_remote.c92 struct xfs_buf *bp, in xfs_attr3_rmt_verify() argument
99 if (!xfs_verify_magic(bp, rmt->rm_magic)) in xfs_attr3_rmt_verify()
118 struct xfs_buf *bp, in __xfs_attr3_rmt_read_verify() argument
122 struct xfs_mount *mp = bp->b_mount; in __xfs_attr3_rmt_read_verify()
132 ptr = bp->b_addr; in __xfs_attr3_rmt_read_verify()
133 bno = xfs_buf_daddr(bp); in __xfs_attr3_rmt_read_verify()
134 len = BBTOB(bp->b_length); in __xfs_attr3_rmt_read_verify()
143 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify()
161 struct xfs_buf *bp) in xfs_attr3_rmt_read_verify() argument
166 error = __xfs_attr3_rmt_read_verify(bp, true, &fa); in xfs_attr3_rmt_read_verify()
[all …]
Dxfs_dir2_data.c100 struct xfs_buf *bp) /* data block's buffer */ in __xfs_dir3_data_check() argument
113 struct xfs_mount *mp = bp->b_mount; in __xfs_dir3_data_check()
126 hdr = bp->b_addr; in __xfs_dir3_data_check()
178 struct xfs_dir2_data_unused *dup = bp->b_addr + offset; in __xfs_dir3_data_check()
179 struct xfs_dir2_data_entry *dep = bp->b_addr + offset; in __xfs_dir3_data_check()
276 struct xfs_buf *bp) in xfs_dir3_data_check() argument
280 fa = __xfs_dir3_data_check(dp, bp); in xfs_dir3_data_check()
284 bp->b_addr, BBTOB(bp->b_length), __FILE__, __LINE__, in xfs_dir3_data_check()
292 struct xfs_buf *bp) in xfs_dir3_data_verify() argument
294 struct xfs_mount *mp = bp->b_mount; in xfs_dir3_data_verify()
[all …]
Dxfs_dquot_buf.c147 struct xfs_buf *bp, in xfs_dquot_buf_verify_crc() argument
150 struct xfs_dqblk *d = (struct xfs_dqblk *)bp->b_addr; in xfs_dquot_buf_verify_crc()
165 ndquots = xfs_calc_dquots_per_chunk(bp->b_length); in xfs_dquot_buf_verify_crc()
171 xfs_buf_verifier_error(bp, -EFSBADCRC, __func__, in xfs_dquot_buf_verify_crc()
182 struct xfs_buf *bp, in xfs_dquot_buf_verify() argument
185 struct xfs_dqblk *dqb = bp->b_addr; in xfs_dquot_buf_verify()
199 ndquots = xfs_calc_dquots_per_chunk(bp->b_length); in xfs_dquot_buf_verify()
219 xfs_buf_verifier_error(bp, -EFSCORRUPTED, in xfs_dquot_buf_verify()
231 struct xfs_buf *bp) in xfs_dquot_buf_verify_struct() argument
233 struct xfs_mount *mp = bp->b_mount; in xfs_dquot_buf_verify_struct()
[all …]
Dxfs_btree.c128 struct xfs_buf *bp) in __xfs_btree_check_lblock() argument
140 cpu_to_be64(bp ? xfs_buf_daddr(bp) : XFS_BUF_DADDR_NULL)) in __xfs_btree_check_lblock()
154 if (bp) in __xfs_btree_check_lblock()
155 fsb = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp)); in __xfs_btree_check_lblock()
171 struct xfs_buf *bp) in xfs_btree_check_lblock() argument
176 fa = __xfs_btree_check_lblock(cur, block, level, bp); in xfs_btree_check_lblock()
179 if (bp) in xfs_btree_check_lblock()
180 trace_xfs_btree_corrupt(bp, _RET_IP_); in xfs_btree_check_lblock()
195 struct xfs_buf *bp) in __xfs_btree_check_sblock() argument
208 cpu_to_be64(bp ? xfs_buf_daddr(bp) : XFS_BUF_DADDR_NULL)) in __xfs_btree_check_sblock()
[all …]
Dxfs_attr.c48 STATIC int xfs_attr_leaf_hasname(struct xfs_da_args *args, struct xfs_buf **bp);
49 STATIC int xfs_attr_leaf_try_add(struct xfs_da_args *args, struct xfs_buf *bp);
357 struct xfs_buf *bp = NULL; in xfs_attr_set_iter() local
518 &bp); in xfs_attr_set_iter()
522 xfs_attr3_leaf_remove(bp, args); in xfs_attr_set_iter()
524 forkoff = xfs_attr_shortform_allfit(bp, dp); in xfs_attr_set_iter()
526 error = xfs_attr3_leaf_to_shortform(bp, args, forkoff); in xfs_attr_set_iter()
650 struct xfs_buf *bp = NULL; in xfs_attr_lookup() local
660 error = xfs_attr_leaf_hasname(args, &bp); in xfs_attr_lookup()
662 if (bp) in xfs_attr_lookup()
[all …]
Dxfs_ag.c308 struct xfs_buf *bp; in xfs_get_aghdr_buf() local
311 error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp); in xfs_get_aghdr_buf()
315 bp->b_maps[0].bm_bn = blkno; in xfs_get_aghdr_buf()
316 bp->b_ops = ops; in xfs_get_aghdr_buf()
318 *bpp = bp; in xfs_get_aghdr_buf()
334 struct xfs_buf *bp, in xfs_btroot_init() argument
337 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init()
344 struct xfs_buf *bp, in xfs_freesp_init_recs() argument
348 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_freesp_init_recs()
350 arec = XFS_ALLOC_REC_ADDR(mp, XFS_BUF_TO_BLOCK(bp), 1); in xfs_freesp_init_recs()
[all …]
/fs/xfs/scrub/
Ddabtree.c90 xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr); in xchk_da_btree_node_entry()
148 struct xfs_buf *bp) in xchk_da_btree_read_verify() argument
150 struct xfs_da_blkinfo *info = bp->b_addr; in xchk_da_btree_read_verify()
155 bp->b_ops = &xfs_dir3_leaf1_buf_ops; in xchk_da_btree_read_verify()
156 bp->b_ops->verify_read(bp); in xchk_da_btree_read_verify()
163 bp->b_ops = &xfs_da3_node_buf_ops; in xchk_da_btree_read_verify()
164 bp->b_ops->verify_read(bp); in xchk_da_btree_read_verify()
170 struct xfs_buf *bp) in xchk_da_btree_write_verify() argument
172 struct xfs_da_blkinfo *info = bp->b_addr; in xchk_da_btree_write_verify()
177 bp->b_ops = &xfs_dir3_leaf1_buf_ops; in xchk_da_btree_write_verify()
[all …]
Dagheader.c27 struct xfs_buf *bp) in xchk_superblock_xref() argument
64 struct xfs_buf *bp; in xchk_superblock() local
86 error = xfs_sb_read_secondary(mp, sc->tp, agno, &bp); in xchk_superblock()
107 sb = bp->b_addr; in xchk_superblock()
116 xchk_block_set_corrupt(sc, bp); in xchk_superblock()
119 xchk_block_set_corrupt(sc, bp); in xchk_superblock()
122 xchk_block_set_corrupt(sc, bp); in xchk_superblock()
125 xchk_block_set_corrupt(sc, bp); in xchk_superblock()
128 xchk_block_set_preen(sc, bp); in xchk_superblock()
131 xchk_block_set_corrupt(sc, bp); in xchk_superblock()
[all …]

12345