/fs/ext2/ |
D | xattr.c | 626 struct buffer_head *new_bh = NULL; in ext2_xattr_set2() local 630 new_bh = ext2_xattr_cache_find(inode, header); in ext2_xattr_set2() 631 if (new_bh) { in ext2_xattr_set2() 633 if (new_bh == old_bh) { in ext2_xattr_set2() 634 ea_bdebug(new_bh, "keeping this block"); in ext2_xattr_set2() 638 ea_bdebug(new_bh, "reusing block"); in ext2_xattr_set2() 642 unlock_buffer(new_bh); in ext2_xattr_set2() 645 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2() 646 ea_bdebug(new_bh, "refcount now=%d", in ext2_xattr_set2() 647 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2() [all …]
|
/fs/ext3/ |
D | xattr.c | 680 struct buffer_head *new_bh = NULL; in ext3_xattr_block_set() local 765 new_bh = ext3_xattr_cache_find(inode, header(s->base), &ce); in ext3_xattr_block_set() 766 if (new_bh) { in ext3_xattr_block_set() 768 if (new_bh == bs->bh) in ext3_xattr_block_set() 769 ea_bdebug(new_bh, "keeping"); in ext3_xattr_block_set() 777 new_bh); in ext3_xattr_block_set() 780 lock_buffer(new_bh); in ext3_xattr_block_set() 781 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext3_xattr_block_set() 782 ea_bdebug(new_bh, "reusing; refcount now=%d", in ext3_xattr_block_set() 783 le32_to_cpu(BHDR(new_bh)->h_refcount)); in ext3_xattr_block_set() [all …]
|
D | namei.c | 2339 struct buffer_head * old_bh, * new_bh, * dir_bh; in ext3_rename() local 2346 old_bh = new_bh = dir_bh = NULL; in ext3_rename() 2374 new_bh = ext3_find_entry(new_dir, &new_dentry->d_name, &new_de); in ext3_rename() 2375 if (new_bh) { in ext3_rename() 2377 brelse (new_bh); in ext3_rename() 2378 new_bh = NULL; in ext3_rename() 2398 if (!new_bh) { in ext3_rename() 2403 BUFFER_TRACE(new_bh, "get write access"); in ext3_rename() 2404 retval = ext3_journal_get_write_access(handle, new_bh); in ext3_rename() 2414 BUFFER_TRACE(new_bh, "call ext3_journal_dirty_metadata"); in ext3_rename() [all …]
|
/fs/ext4/ |
D | xattr.c | 694 struct buffer_head *new_bh = NULL; in ext4_xattr_block_set() local 779 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set() 780 if (new_bh) { in ext4_xattr_block_set() 782 if (new_bh == bs->bh) in ext4_xattr_block_set() 783 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set() 792 new_bh); in ext4_xattr_block_set() 795 lock_buffer(new_bh); in ext4_xattr_block_set() 796 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext4_xattr_block_set() 797 ea_bdebug(new_bh, "reusing; refcount now=%d", in ext4_xattr_block_set() 798 le32_to_cpu(BHDR(new_bh)->h_refcount)); in ext4_xattr_block_set() [all …]
|
D | namei.c | 2398 struct buffer_head *old_bh, *new_bh, *dir_bh; in ext4_rename() local 2405 old_bh = new_bh = dir_bh = NULL; in ext4_rename() 2433 new_bh = ext4_find_entry(new_dir, &new_dentry->d_name, &new_de); in ext4_rename() 2434 if (new_bh) { in ext4_rename() 2436 brelse(new_bh); in ext4_rename() 2437 new_bh = NULL; in ext4_rename() 2462 if (!new_bh) { in ext4_rename() 2467 BUFFER_TRACE(new_bh, "get write access"); in ext4_rename() 2468 retval = ext4_journal_get_write_access(handle, new_bh); in ext4_rename() 2479 BUFFER_TRACE(new_bh, "call ext4_handle_dirty_metadata"); in ext4_rename() [all …]
|
/fs/bfs/ |
D | dir.c | 222 struct buffer_head *old_bh, *new_bh; in bfs_rename() local 227 old_bh = new_bh = NULL; in bfs_rename() 244 new_bh = bfs_find_entry(new_dir, in bfs_rename() 248 if (new_bh && !new_inode) { in bfs_rename() 249 brelse(new_bh); in bfs_rename() 250 new_bh = NULL; in bfs_rename() 252 if (!new_bh) { in bfs_rename() 273 brelse(new_bh); in bfs_rename()
|
/fs/ocfs2/ |
D | refcounttree.c | 568 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local 615 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree() 616 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree() 618 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree() 626 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree() 641 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree() 688 brelse(new_bh); in ocfs2_create_refcount_tree() 1292 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local 1312 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root() 1313 if (new_bh == NULL) { in ocfs2_expand_inline_ref_root() [all …]
|
D | dir.c | 82 struct buffer_head **new_bh); 2315 struct buffer_head *new_bh = NULL; in ocfs2_fill_new_dir_el() local 2322 data_ac, NULL, &new_bh); in ocfs2_fill_new_dir_el() 2328 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_fill_new_dir_el() 2330 status = ocfs2_journal_access_db(handle, INODE_CACHE(inode), new_bh, in ocfs2_fill_new_dir_el() 2336 memset(new_bh->b_data, 0, osb->sb->s_blocksize); in ocfs2_fill_new_dir_el() 2338 de = ocfs2_fill_initial_dirents(inode, parent, new_bh->b_data, size); in ocfs2_fill_new_dir_el() 2350 ocfs2_init_dir_trailer(inode, new_bh, size); in ocfs2_fill_new_dir_el() 2353 ocfs2_journal_dirty(handle, new_bh); in ocfs2_fill_new_dir_el() 2366 *ret_new_bh = new_bh; in ocfs2_fill_new_dir_el() [all …]
|
D | xattr.c | 2857 struct buffer_head *new_bh = NULL; in ocfs2_create_xattr_block() local 2875 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_xattr_block() 2876 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_create_xattr_block() 2879 new_bh, in ocfs2_create_xattr_block() 2887 xblk = (struct ocfs2_xattr_block *)new_bh->b_data; in ocfs2_create_xattr_block() 2906 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block() 2918 *ret_bh = new_bh; in ocfs2_create_xattr_block() 2919 new_bh = NULL; in ocfs2_create_xattr_block() 2922 brelse(new_bh); in ocfs2_create_xattr_block() 2937 struct buffer_head *new_bh = NULL; in ocfs2_xattr_block_set() local [all …]
|
D | xattr.h | 95 struct buffer_head *new_bh,
|
D | ocfs2_trace.h | 2312 TP_PROTO(unsigned long long new_blkno, void *new_bh, 2314 TP_ARGS(new_blkno, new_bh, newdi_blkno), 2317 __field(void *, new_bh) 2322 __entry->new_bh = new_bh; 2325 TP_printk("%llu %p %llu", __entry->new_blkno, __entry->new_bh,
|
/fs/jbd/ |
D | journal.c | 293 struct buffer_head *new_bh; in journal_write_metadata_buffer() local 311 new_bh = alloc_buffer_head(GFP_NOFS|__GFP_NOFAIL); in journal_write_metadata_buffer() 313 new_bh->b_state = 0; in journal_write_metadata_buffer() 314 init_buffer(new_bh, NULL, NULL); in journal_write_metadata_buffer() 315 atomic_set(&new_bh->b_count, 1); in journal_write_metadata_buffer() 316 new_jh = journal_add_journal_head(new_bh); /* This sleeps */ in journal_write_metadata_buffer() 378 set_bh_page(new_bh, new_page, new_offset); in journal_write_metadata_buffer() 380 new_bh->b_size = jh2bh(jh_in)->b_size; in journal_write_metadata_buffer() 381 new_bh->b_bdev = transaction->t_journal->j_dev; in journal_write_metadata_buffer() 382 new_bh->b_blocknr = blocknr; in journal_write_metadata_buffer() [all …]
|
/fs/affs/ |
D | file.c | 146 struct buffer_head *new_bh; in affs_alloc_extblock() local 153 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 154 if (!new_bh) { in affs_alloc_extblock() 159 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); in affs_alloc_extblock() 160 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 161 AFFS_TAIL(sb, new_bh)->stype = cpu_to_be32(ST_FILE); in affs_alloc_extblock() 162 AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino); in affs_alloc_extblock() 163 affs_fix_checksum(sb, new_bh); in affs_alloc_extblock() 165 mark_buffer_dirty_inode(new_bh, inode); in affs_alloc_extblock() 177 return new_bh; in affs_alloc_extblock()
|
/fs/jbd2/ |
D | journal.c | 297 struct buffer_head *new_bh; in jbd2_journal_write_metadata_buffer() local 316 new_bh = alloc_buffer_head(GFP_NOFS); in jbd2_journal_write_metadata_buffer() 317 if (!new_bh) { in jbd2_journal_write_metadata_buffer() 327 new_bh->b_state = 0; in jbd2_journal_write_metadata_buffer() 328 init_buffer(new_bh, NULL, NULL); in jbd2_journal_write_metadata_buffer() 329 atomic_set(&new_bh->b_count, 1); in jbd2_journal_write_metadata_buffer() 330 new_jh = jbd2_journal_add_journal_head(new_bh); /* This sleeps */ in jbd2_journal_write_metadata_buffer() 413 set_bh_page(new_bh, new_page, new_offset); in jbd2_journal_write_metadata_buffer() 415 new_bh->b_size = jh2bh(jh_in)->b_size; in jbd2_journal_write_metadata_buffer() 416 new_bh->b_bdev = transaction->t_journal->j_dev; in jbd2_journal_write_metadata_buffer() [all …]
|
/fs/reiserfs/ |
D | fix_node.c | 781 struct buffer_head *new_bh, in get_empty_nodes() local 831 new_bh = sb_getblk(sb, *blocknr); in get_empty_nodes() 832 RFALSE(buffer_dirty(new_bh) || in get_empty_nodes() 833 buffer_journaled(new_bh) || in get_empty_nodes() 834 buffer_journal_dirty(new_bh), in get_empty_nodes() 836 new_bh); in get_empty_nodes() 842 set_buffer_journal_new(new_bh); in get_empty_nodes() 843 tb->FEB[tb->cur_blknum++] = new_bh; in get_empty_nodes()
|
/fs/nilfs2/ |
D | segment.c | 1461 struct buffer_head *new_bh) in nilfs_list_replace_buffer() argument 1463 BUG_ON(!list_empty(&new_bh->b_assoc_buffers)); in nilfs_list_replace_buffer() 1465 list_replace_init(&old_bh->b_assoc_buffers, &new_bh->b_assoc_buffers); in nilfs_list_replace_buffer()
|