Home
last modified time | relevance | path

Searched refs:bh2 (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.10/fs/qnx6/
Dsuper_mmi.c38 struct buffer_head *bh1, *bh2 = NULL; in qnx6_mmi_fill_super() local
84 bh2 = sb_bread(s, offset); in qnx6_mmi_fill_super()
85 if (!bh2) { in qnx6_mmi_fill_super()
89 sb2 = (struct qnx6_mmi_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
98 != crc32_be(0, (char *)(bh2->b_data + 8), 504)) { in qnx6_mmi_fill_super()
120 brelse(bh2); in qnx6_mmi_fill_super()
128 memcpy(bh2->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
130 sbi->sb_buf = bh2; in qnx6_mmi_fill_super()
131 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
146 if (bh2 != NULL) in qnx6_mmi_fill_super()
[all …]
Dinode.c298 struct buffer_head *bh1 = NULL, *bh2 = NULL; in qnx6_fill_super() local
382 bh2 = sb_bread(s, offset); in qnx6_fill_super()
383 if (!bh2) { in qnx6_fill_super()
387 sb2 = (struct qnx6_super_block *)bh2->b_data; in qnx6_fill_super()
396 crc32_be(0, (char *)(bh2->b_data + 8), 504)) { in qnx6_fill_super()
406 brelse(bh2); in qnx6_fill_super()
410 sbi->sb_buf = bh2; in qnx6_fill_super()
411 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_fill_super()
475 if (bh2) in qnx6_fill_super()
476 brelse(bh2); in qnx6_fill_super()
/Linux-v5.10/fs/jbd2/
Drevoke.c354 struct buffer_head *bh2; in jbd2_journal_revoke() local
358 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
359 if (bh2) { in jbd2_journal_revoke()
361 if (bh2 != bh && buffer_revokevalid(bh2)) in jbd2_journal_revoke()
368 J_ASSERT_BH(bh2, buffer_revoked(bh2)); in jbd2_journal_revoke()
369 put_bh(bh2); in jbd2_journal_revoke()
468 struct buffer_head *bh2; in jbd2_journal_cancel_revoke() local
469 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
470 if (bh2) { in jbd2_journal_cancel_revoke()
471 if (bh2 != bh) in jbd2_journal_cancel_revoke()
[all …]
/Linux-v5.10/fs/sysv/
Dsuper.c51 struct buffer_head *bh2 = sbi->s_bh2; in detected_xenix() local
55 if (bh1 != bh2) in detected_xenix()
60 sbd2 = (struct xenix_super_block *) (bh2->b_data - 512); in detected_xenix()
83 struct buffer_head *bh2 = sbi->s_bh2; in detected_sysv4() local
85 if (bh1 == bh2) in detected_sysv4()
88 sbd = (struct sysv4_super_block *) bh2->b_data; in detected_sysv4()
111 struct buffer_head *bh2 = sbi->s_bh2; in detected_sysv2() local
113 if (bh1 == bh2) in detected_sysv2()
116 sbd = (struct sysv2_super_block *) bh2->b_data; in detected_sysv2()
160 struct buffer_head *bh2 = sbi->s_bh2; in detected_v7() local
[all …]
/Linux-v5.10/fs/omfs/
Dinode.c106 struct buffer_head *bh, *bh2; in __omfs_write_inode() local
152 bh2 = omfs_bread(inode->i_sb, inode->i_ino + i); in __omfs_write_inode()
153 if (!bh2) in __omfs_write_inode()
156 memcpy(bh2->b_data, bh->b_data, bh->b_size); in __omfs_write_inode()
157 mark_buffer_dirty(bh2); in __omfs_write_inode()
159 sync_dirty_buffer(bh2); in __omfs_write_inode()
160 if (buffer_req(bh2) && !buffer_uptodate(bh2)) in __omfs_write_inode()
163 brelse(bh2); in __omfs_write_inode()
457 struct buffer_head *bh, *bh2; in omfs_fill_super() local
538 bh2 = omfs_bread(sb, be64_to_cpu(omfs_sb->s_root_block)); in omfs_fill_super()
[all …]
Ddir.c163 struct buffer_head *bh, *bh2; in omfs_delete_entry() local
177 bh2 = omfs_scan_list(dir, block, name, namelen, &prev); in omfs_delete_entry()
178 if (IS_ERR(bh2)) { in omfs_delete_entry()
179 err = PTR_ERR(bh2); in omfs_delete_entry()
183 oi = (struct omfs_inode *) bh2->b_data; in omfs_delete_entry()
185 brelse(bh2); in omfs_delete_entry()
/Linux-v5.10/fs/jfs/
Dresize.c73 struct buffer_head *bh, *bh2; in jfs_extendfs() local
509 bh2 = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); in jfs_extendfs()
510 if (bh2) { in jfs_extendfs()
511 j_sb2 = (struct jfs_superblock *)bh2->b_data; in jfs_extendfs()
515 sync_dirty_buffer(bh2); in jfs_extendfs()
516 brelse(bh2); in jfs_extendfs()
/Linux-v5.10/fs/hpfs/
Danode.c68 struct buffer_head *bh, *bh1, *bh2; in hpfs_add_sector_to_btree() local
145 } else if (!(ranode = hpfs_alloc_anode(s, /*a*/0, &ra, &bh2))) { in hpfs_add_sector_to_btree()
184 brelse(bh2); in hpfs_add_sector_to_btree()
229 brelse(bh2); in hpfs_add_sector_to_btree()
235 brelse(bh2); in hpfs_add_sector_to_btree()
264 mark_buffer_dirty(bh2); in hpfs_add_sector_to_btree()
265 brelse(bh2); in hpfs_add_sector_to_btree()
Dea.c321 struct buffer_head *bh1, *bh2; in hpfs_set_ea() local
327 if (!(b2 = hpfs_get_sector(s, new_sec + i, &bh2))) { in hpfs_set_ea()
334 mark_buffer_dirty(bh2); in hpfs_set_ea()
335 brelse(bh2); in hpfs_set_ea()
Dsuper.c539 struct buffer_head *bh0, *bh1, *bh2; in hpfs_fill_super() local
591 if (!(spareblock = hpfs_map_sector(s, 17, &bh2, 0))) goto bail3; in hpfs_fill_super()
666 mark_buffer_dirty(bh2); in hpfs_fill_super()
704 brelse(bh2); in hpfs_fill_super()
745 bail4: brelse(bh2); in hpfs_fill_super()
/Linux-v5.10/fs/ext4/
Dnamei.c1822 struct buffer_head *bh2; in do_split() local
1835 bh2 = ext4_append(handle, dir, &newblock); in do_split()
1836 if (IS_ERR(bh2)) { in do_split()
1839 return (struct ext4_dir_entry_2 *) bh2; in do_split()
1852 data2 = bh2->b_data; in do_split()
1900 ext4_initialize_dirent_tail(bh2, blocksize); in do_split()
1910 swap(*bh, bh2); in do_split()
1914 err = ext4_handle_dirty_dirblock(handle, dir, bh2); in do_split()
1920 brelse(bh2); in do_split()
1926 brelse(bh2); in do_split()
[all …]
Dialloc.c241 struct buffer_head *bh2; in ext4_free_inode() local
308 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
310 BUFFER_TRACE(bh2, "get_write_access"); in ext4_free_inode()
311 fatal = ext4_journal_get_write_access(handle, bh2); in ext4_free_inode()
342 BUFFER_TRACE(bh2, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
343 fatal = ext4_handle_dirty_metadata(handle, NULL, bh2); in ext4_free_inode()
/Linux-v5.10/fs/ext2/
Dialloc.c433 struct buffer_head *bh2; in ext2_new_inode() local
465 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
548 mark_buffer_dirty(bh2); in ext2_new_inode()
Dballoc.c482 struct buffer_head * bh2; in ext2_free_blocks() local
521 desc = ext2_get_group_desc (sb, block_group, &bh2); in ext2_free_blocks()
552 group_adjust_blocks(sb, block_group, desc, bh2, group_freed); in ext2_free_blocks()
/Linux-v5.10/fs/ocfs2/
Drefcounttree.h120 struct buffer_head **bh2);
Dnamei.c89 struct buffer_head **bh2,
1111 struct buffer_head **bh2, in ocfs2_double_lock() argument
1125 if (*bh2) in ocfs2_double_lock()
1126 *bh2 = NULL; in ocfs2_double_lock()
1149 swap(bh2, bh1); in ocfs2_double_lock()
1153 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock()
1172 brelse(*bh2); in ocfs2_double_lock()
1173 *bh2 = NULL; in ocfs2_double_lock()
Drefcounttree.c4725 struct buffer_head *bh2 = NULL; in ocfs2_reflink_inodes_lock() local
4770 status = ocfs2_inode_lock_nested(inode2, &bh2, 1, in ocfs2_reflink_inodes_lock()
4778 bh2 = bh1; in ocfs2_reflink_inodes_lock()
4786 swap(bh1, bh2); in ocfs2_reflink_inodes_lock()
4788 *bh_t = bh2; in ocfs2_reflink_inodes_lock()
/Linux-v5.10/Documentation/scsi/
Dbnx2fc.rst49 [root@bh2 ~]# fcoeadm -i
/Linux-v5.10/drivers/usb/gadget/function/
Df_mass_storage.c1449 struct fsg_buffhd *bh, *bh2; in throw_away_data() local
1458 bh2 = common->next_buffhd_to_fill; in throw_away_data()
1459 if (bh2->state == BUF_STATE_EMPTY && in throw_away_data()
1468 set_bulk_out_req_length(common, bh2, amount); in throw_away_data()
1469 if (!start_out_transfer(common, bh2)) in throw_away_data()
1472 common->next_buffhd_to_fill = bh2->next; in throw_away_data()
/Linux-v5.10/include/linux/
Djbd2.h1780 #define BUFFER_TRACE2(bh, bh2, info) do {} while (0) argument