Home
last modified time | relevance | path

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

/fs/jbd/
Drevoke.c343 struct buffer_head *bh2; in journal_revoke() local
347 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke()
348 if (bh2) { in journal_revoke()
350 if (bh2 != bh && buffer_revokevalid(bh2)) in journal_revoke()
357 J_ASSERT_BH(bh2, buffer_revoked(bh2)); in journal_revoke()
358 put_bh(bh2); in journal_revoke()
453 struct buffer_head *bh2; in journal_cancel_revoke() local
454 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in journal_cancel_revoke()
455 if (bh2) { in journal_cancel_revoke()
456 if (bh2 != bh) in journal_cancel_revoke()
[all …]
/fs/jbd2/
Drevoke.c342 struct buffer_head *bh2; in jbd2_journal_revoke() local
346 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
347 if (bh2) { in jbd2_journal_revoke()
349 if (bh2 != bh && buffer_revokevalid(bh2)) in jbd2_journal_revoke()
356 J_ASSERT_BH(bh2, buffer_revoked(bh2)); in jbd2_journal_revoke()
357 put_bh(bh2); in jbd2_journal_revoke()
452 struct buffer_head *bh2; in jbd2_journal_cancel_revoke() local
453 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
454 if (bh2) { in jbd2_journal_cancel_revoke()
455 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.c96 struct buffer_head *bh, *bh2; in omfs_write_inode() local
144 bh2 = sb_bread(inode->i_sb, block + i * in omfs_write_inode()
146 if (!bh2) in omfs_write_inode()
149 memcpy(bh2->b_data, bh->b_data, bh->b_size); in omfs_write_inode()
150 mark_buffer_dirty(bh2); in omfs_write_inode()
152 sync_dirty_buffer(bh2); in omfs_write_inode()
153 if (buffer_req(bh2) && !buffer_uptodate(bh2)) in omfs_write_inode()
156 brelse(bh2); in omfs_write_inode()
406 struct buffer_head *bh, *bh2; in omfs_fill_super() local
481 bh2 = sb_bread(sb, start); in omfs_fill_super()
[all …]
Ddir.c166 struct buffer_head *bh, *bh2; in omfs_delete_entry() local
180 bh2 = omfs_scan_list(dir, block, name, namelen, &prev); in omfs_delete_entry()
181 if (IS_ERR(bh2)) { in omfs_delete_entry()
182 err = PTR_ERR(bh2); in omfs_delete_entry()
186 oi = (struct omfs_inode *) bh2->b_data; in omfs_delete_entry()
188 brelse(bh2); in omfs_delete_entry()
/fs/ext3/
Dialloc.c95 struct buffer_head *bh2; in ext3_free_inode() local
159 gdp = ext3_get_group_desc (sb, block_group, &bh2); in ext3_free_inode()
161 BUFFER_TRACE(bh2, "get_write_access"); in ext3_free_inode()
162 fatal = ext3_journal_get_write_access(handle, bh2); in ext3_free_inode()
176 BUFFER_TRACE(bh2, "call ext3_journal_dirty_metadata"); in ext3_free_inode()
177 err = ext3_journal_dirty_metadata(handle, bh2); in ext3_free_inode()
423 struct buffer_head *bh2; in ext3_new_inode() local
462 gdp = ext3_get_group_desc(sb, group, &bh2); in ext3_new_inode()
524 BUFFER_TRACE(bh2, "get_write_access"); in ext3_new_inode()
525 err = ext3_journal_get_write_access(handle, bh2); in ext3_new_inode()
[all …]
Dnamei.c1155 struct buffer_head *bh2; in do_split() local
1164 bh2 = ext3_append (handle, dir, &newblock, &err); in do_split()
1165 if (!(bh2)) { in do_split()
1181 data2 = bh2->b_data; in do_split()
1217 swap(*bh, bh2); in do_split()
1221 err = ext3_journal_dirty_metadata (handle, bh2); in do_split()
1227 brelse (bh2); in do_split()
1233 brelse(bh2); in do_split()
1347 struct buffer_head *bh2; in make_indexed_dir() local
1383 bh2 = ext3_append (handle, dir, &block, &retval); in make_indexed_dir()
[all …]
/fs/jfs/
Dresize.c84 struct buffer_head *bh, *bh2; in jfs_extendfs() local
511 bh2 = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits); in jfs_extendfs()
512 if (bh2) { in jfs_extendfs()
513 j_sb2 = (struct jfs_superblock *)bh2->b_data; in jfs_extendfs()
517 sync_dirty_buffer(bh2); in jfs_extendfs()
518 brelse(bh2); in jfs_extendfs()
/fs/ext4/
Dnamei.c1165 struct buffer_head *bh2; in do_split() local
1174 bh2 = ext4_append (handle, dir, &newblock, &err); in do_split()
1175 if (!(bh2)) { in do_split()
1191 data2 = bh2->b_data; in do_split()
1228 swap(*bh, bh2); in do_split()
1232 err = ext4_handle_dirty_metadata(handle, dir, bh2); in do_split()
1238 brelse(bh2); in do_split()
1244 brelse(bh2); in do_split()
1357 struct buffer_head *bh2; in make_indexed_dir() local
1394 bh2 = ext4_append(handle, dir, &block, &retval); in make_indexed_dir()
[all …]
Dialloc.c185 struct buffer_head *bh2; in ext4_free_inode() local
258 gdp = ext4_get_group_desc(sb, block_group, &bh2); in ext4_free_inode()
260 BUFFER_TRACE(bh2, "get_write_access"); in ext4_free_inode()
261 fatal = ext4_journal_get_write_access(handle, bh2); in ext4_free_inode()
286 BUFFER_TRACE(bh2, "call ext4_handle_dirty_metadata"); in ext4_free_inode()
287 err = ext4_handle_dirty_metadata(handle, NULL, bh2); in ext4_free_inode()
/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()
224 brelse(bh2); in hpfs_add_sector_to_btree()
230 brelse(bh2); in hpfs_add_sector_to_btree()
258 mark_buffer_dirty(bh2); in hpfs_add_sector_to_btree()
259 brelse(bh2); in hpfs_add_sector_to_btree()
Dsuper.c448 struct buffer_head *bh0, *bh1, *bh2; in hpfs_fill_super() local
504 if (!(spareblock = hpfs_map_sector(s, 17, &bh2, 0))) goto bail3; in hpfs_fill_super()
568 mark_buffer_dirty(bh2); in hpfs_fill_super()
614 brelse(bh2); in hpfs_fill_super()
657 bail4: brelse(bh2); in hpfs_fill_super()
Dea.c317 struct buffer_head *bh1, *bh2; in hpfs_set_ea() local
323 if (!(b2 = hpfs_get_sector(s, new_sec + i, &bh2))) { in hpfs_set_ea()
330 mark_buffer_dirty(bh2); in hpfs_set_ea()
331 brelse(bh2); in hpfs_set_ea()
/fs/ext2/
Dialloc.c442 struct buffer_head *bh2; in ext2_new_inode() local
474 gdp = ext2_get_group_desc(sb, group, &bh2); in ext2_new_inode()
552 mark_buffer_dirty(bh2); in ext2_new_inode()
Dballoc.c490 struct buffer_head * bh2; in ext2_free_blocks() local
531 desc = ext2_get_group_desc (sb, block_group, &bh2); in ext2_free_blocks()
562 group_adjust_blocks(sb, block_group, desc, bh2, group_freed); in ext2_free_blocks()
/fs/ocfs2/
Dnamei.c935 struct buffer_head **bh2, in ocfs2_double_lock() argument
950 if (*bh2) in ocfs2_double_lock()
951 *bh2 = NULL; in ocfs2_double_lock()
958 tmpbh = bh2; in ocfs2_double_lock()
959 bh2 = bh1; in ocfs2_double_lock()
967 status = ocfs2_inode_lock(inode2, bh2, 1); in ocfs2_double_lock()
/fs/udf/
Dsuper.c1393 struct buffer_head *bh2; in udf_load_logicalvol() local
1397 bh2 = udf_read_tagged(sb, loc, loc, in udf_load_logicalvol()
1400 s_spar_map[j] = bh2; in udf_load_logicalvol()
1402 if (bh2 == NULL) in udf_load_logicalvol()
1405 st = (struct sparingTable *)bh2->b_data; in udf_load_logicalvol()
1410 brelse(bh2); in udf_load_logicalvol()
/fs/
Dbuffer.c1376 struct buffer_head *bh2 = lru->bhs[in]; in bh_lru_install() local
1378 if (bh2 == bh) { in bh_lru_install()
1379 __brelse(bh2); in bh_lru_install()
1383 evictee = bh2; in bh_lru_install()
1385 bhs[out++] = bh2; in bh_lru_install()