Home
last modified time | relevance | path

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

/fs/qnx6/
Dsuper_mmi.c37 struct buffer_head *bh1, *bh2 = NULL; in qnx6_mmi_fill_super() local
83 bh2 = sb_bread(s, offset); in qnx6_mmi_fill_super()
84 if (!bh2) { in qnx6_mmi_fill_super()
88 sb2 = (struct qnx6_mmi_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
97 != crc32_be(0, (char *)(bh2->b_data + 8), 504)) { in qnx6_mmi_fill_super()
119 brelse(bh2); in qnx6_mmi_fill_super()
127 memcpy(bh2->b_data, qsb, sizeof(struct qnx6_super_block)); in qnx6_mmi_fill_super()
129 sbi->sb_buf = bh2; in qnx6_mmi_fill_super()
130 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_mmi_fill_super()
145 if (bh2 != NULL) in qnx6_mmi_fill_super()
[all …]
Dinode.c299 struct buffer_head *bh1 = NULL, *bh2 = NULL; in qnx6_fill_super() local
383 bh2 = sb_bread(s, offset); in qnx6_fill_super()
384 if (!bh2) { in qnx6_fill_super()
388 sb2 = (struct qnx6_super_block *)bh2->b_data; in qnx6_fill_super()
397 crc32_be(0, (char *)(bh2->b_data + 8), 504)) { in qnx6_fill_super()
407 brelse(bh2); in qnx6_fill_super()
411 sbi->sb_buf = bh2; in qnx6_fill_super()
412 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_fill_super()
474 if (bh2) in qnx6_fill_super()
475 brelse(bh2); in qnx6_fill_super()
/fs/jbd/
Drevoke.c360 struct buffer_head *bh2; in journal_revoke() local
364 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
365 if (bh2) { in journal_revoke()
367 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke()
374 J_ASSERT_BH(bh2, buffer_revoked(bh2)); in journal_revoke()
375 put_bh(bh2); in journal_revoke()
468 struct buffer_head *bh2; in journal_cancel_revoke() local
469 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in journal_cancel_revoke()
470 if (bh2) { in journal_cancel_revoke()
471 if (bh2 != bh) in journal_cancel_revoke()
[all …]
/fs/jbd2/
Drevoke.c357 struct buffer_head *bh2; in jbd2_journal_revoke() local
361 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
362 if (bh2) { in jbd2_journal_revoke()
364 if (bh2 != bh && buffer_revokevalid(bh2)) in jbd2_journal_revoke()
371 J_ASSERT_BH(bh2, buffer_revoked(bh2)); in jbd2_journal_revoke()
372 put_bh(bh2); in jbd2_journal_revoke()
465 struct buffer_head *bh2; in jbd2_journal_cancel_revoke() local
466 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
467 if (bh2) { in jbd2_journal_cancel_revoke()
468 if (bh2 != bh) in jbd2_journal_cancel_revoke()
[all …]
/fs/sysv/
Dsuper.c50 struct buffer_head *bh2 = sbi->s_bh2; in detected_xenix() local
54 if (bh1 != bh2) in detected_xenix()
59 sbd2 = (struct xenix_super_block *) (bh2->b_data - 512); in detected_xenix()
82 struct buffer_head *bh2 = sbi->s_bh2; in detected_sysv4() local
84 if (bh1 == bh2) in detected_sysv4()
87 sbd = (struct sysv4_super_block *) bh2->b_data; in detected_sysv4()
110 struct buffer_head *bh2 = sbi->s_bh2; in detected_sysv2() local
112 if (bh1 == bh2) in detected_sysv2()
115 sbd = (struct sysv2_super_block *) bh2->b_data; in detected_sysv2()
159 struct buffer_head *bh2 = sbi->s_bh2; in detected_v7() local
[all …]
/fs/omfs/
Dinode.c104 struct buffer_head *bh, *bh2; in __omfs_write_inode() local
150 bh2 = omfs_bread(inode->i_sb, inode->i_ino + i); in __omfs_write_inode()
151 if (!bh2) in __omfs_write_inode()
154 memcpy(bh2->b_data, bh->b_data, bh->b_size); in __omfs_write_inode()
155 mark_buffer_dirty(bh2); in __omfs_write_inode()
157 sync_dirty_buffer(bh2); in __omfs_write_inode()
158 if (buffer_req(bh2) && !buffer_uptodate(bh2)) in __omfs_write_inode()
161 brelse(bh2); in __omfs_write_inode()
429 struct buffer_head *bh, *bh2; in omfs_fill_super() local
508 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()
/fs/ext3/
Dialloc.c85 struct buffer_head *bh2; in ext3_free_inode() local
138 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode()
140 BUFFER_TRACE(bh2, "get_write_access"); in ext3_free_inode()
141 fatal = ext3_journal_get_write_access(handle, bh2); in ext3_free_inode()
155 BUFFER_TRACE(bh2, "call ext3_journal_dirty_metadata"); in ext3_free_inode()
156 err = ext3_journal_dirty_metadata(handle, bh2); in ext3_free_inode()
351 struct buffer_head *bh2; in ext3_new_inode() local
388 gdp = ext3_get_group_desc(sb, group, &bh2); in ext3_new_inode()
450 BUFFER_TRACE(bh2, "get_write_access"); in ext3_new_inode()
451 err = ext3_journal_get_write_access(handle, bh2); in ext3_new_inode()
[all …]
Dnamei.c1144 struct buffer_head *bh2; in do_split() local
1153 bh2 = ext3_append (handle, dir, &newblock, &err); in do_split()
1154 if (!(bh2)) { in do_split()
1170 data2 = bh2->b_data; in do_split()
1206 swap(*bh, bh2); in do_split()
1210 err = ext3_journal_dirty_metadata (handle, bh2); in do_split()
1216 brelse (bh2); in do_split()
1222 brelse(bh2); in do_split()
1336 struct buffer_head *bh2; in make_indexed_dir() local
1372 bh2 = ext3_append (handle, dir, &block, &retval); in make_indexed_dir()
[all …]
/fs/jfs/
Dresize.c85 struct buffer_head *bh, *bh2; in jfs_extendfs() local
515 bh2 = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); in jfs_extendfs()
516 if (bh2) { in jfs_extendfs()
517 j_sb2 = (struct jfs_superblock *)bh2->b_data; in jfs_extendfs()
521 sync_dirty_buffer(bh2); in jfs_extendfs()
522 brelse(bh2); in jfs_extendfs()
/fs/hpfs/
Danode.c67 struct buffer_head *bh, *bh1, *bh2; in hpfs_add_sector_to_btree() local
144 } else if (!(ranode = hpfs_alloc_anode(s, /*a*/0, &ra, &bh2))) { in hpfs_add_sector_to_btree()
183 brelse(bh2); in hpfs_add_sector_to_btree()
228 brelse(bh2); in hpfs_add_sector_to_btree()
234 brelse(bh2); in hpfs_add_sector_to_btree()
263 mark_buffer_dirty(bh2); in hpfs_add_sector_to_btree()
264 brelse(bh2); in hpfs_add_sector_to_btree()
Dea.c320 struct buffer_head *bh1, *bh2; in hpfs_set_ea() local
326 if (!(b2 = hpfs_get_sector(s, new_sec + i, &bh2))) { in hpfs_set_ea()
333 mark_buffer_dirty(bh2); in hpfs_set_ea()
334 brelse(bh2); in hpfs_set_ea()
Dsuper.c492 struct buffer_head *bh0, *bh1, *bh2; in hpfs_fill_super() local
546 if (!(spareblock = hpfs_map_sector(s, 17, &bh2, 0))) goto bail3; in hpfs_fill_super()
617 mark_buffer_dirty(bh2); in hpfs_fill_super()
667 brelse(bh2); in hpfs_fill_super()
708 bail4: brelse(bh2); in hpfs_fill_super()
/fs/ext4/
Dnamei.c1699 struct buffer_head *bh2; in do_split() local
1713 bh2 = ext4_append(handle, dir, &newblock); in do_split()
1714 if (IS_ERR(bh2)) { in do_split()
1717 return (struct ext4_dir_entry_2 *) bh2; in do_split()
1730 data2 = bh2->b_data; in do_split()
1781 swap(*bh, bh2); in do_split()
1785 err = ext4_handle_dirty_dirent_node(handle, dir, bh2); in do_split()
1791 brelse(bh2); in do_split()
1797 brelse(bh2); in do_split()
1946 struct buffer_head *bh2; in make_indexed_dir() local
[all …]
Dialloc.c235 struct buffer_head *bh2; in ext4_free_inode() local
299 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
301 BUFFER_TRACE(bh2, "get_write_access"); in ext4_free_inode()
302 fatal = ext4_journal_get_write_access(handle, bh2); in ext4_free_inode()
331 BUFFER_TRACE(bh2, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
332 fatal = ext4_handle_dirty_metadata(handle, NULL, bh2); in ext4_free_inode()
/fs/ext2/
Dialloc.c435 struct buffer_head *bh2; in ext2_new_inode() local
467 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
544 mark_buffer_dirty(bh2); in ext2_new_inode()
Dballoc.c480 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()
/fs/ocfs2/
Dnamei.c100 struct buffer_head **bh2,
1087 struct buffer_head **bh2, in ocfs2_double_lock() argument
1103 if (*bh2) in ocfs2_double_lock()
1104 *bh2 = NULL; in ocfs2_double_lock()
1127 tmpbh = bh2; in ocfs2_double_lock()
1128 bh2 = bh1; in ocfs2_double_lock()
1136 status = ocfs2_inode_lock_nested(inode2, bh2, 1, in ocfs2_double_lock()
1155 brelse(*bh2); in ocfs2_double_lock()
1156 *bh2 = NULL; in ocfs2_double_lock()
/fs/
Dbuffer.c1278 struct buffer_head *bh2 = in bh_lru_install() local
1281 if (bh2 == bh) { in bh_lru_install()
1282 __brelse(bh2); in bh_lru_install()
1286 evictee = bh2; in bh_lru_install()
1288 bhs[out++] = bh2; in bh_lru_install()