/linux-6.6.21/fs/ext2/ |
D | xattr.c | 710 struct buffer_head *new_bh = NULL; in ext2_xattr_set2() local 715 new_bh = ext2_xattr_cache_find(inode, header); in ext2_xattr_set2() 716 if (new_bh) { in ext2_xattr_set2() 718 if (new_bh == old_bh) { in ext2_xattr_set2() 719 ea_bdebug(new_bh, "keeping this block"); in ext2_xattr_set2() 723 ea_bdebug(new_bh, "reusing block"); in ext2_xattr_set2() 727 unlock_buffer(new_bh); in ext2_xattr_set2() 730 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2() 731 ea_bdebug(new_bh, "refcount now=%d", in ext2_xattr_set2() 732 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2() [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | buffer_head_io.c | 95 int new_bh = 0; in ocfs2_read_blocks_sync() local 105 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync() 158 if (new_bh && bh) { in ocfs2_read_blocks_sync() 202 int new_bh = 0; in ocfs2_read_blocks() local 231 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks() 345 if (new_bh && bh) { in ocfs2_read_blocks()
|
D | refcounttree.c | 558 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local 605 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree() 606 if (!new_bh) { in ocfs2_create_refcount_tree() 611 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree() 613 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree() 621 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree() 636 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree() 683 brelse(new_bh); in ocfs2_create_refcount_tree() 1285 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local 1305 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root() [all …]
|
D | dir.c | 62 struct buffer_head **new_bh); 2222 struct buffer_head *new_bh = NULL; in ocfs2_fill_new_dir_el() local 2229 data_ac, NULL, &new_bh); in ocfs2_fill_new_dir_el() 2235 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_fill_new_dir_el() 2237 status = ocfs2_journal_access_db(handle, INODE_CACHE(inode), new_bh, in ocfs2_fill_new_dir_el() 2243 memset(new_bh->b_data, 0, osb->sb->s_blocksize); in ocfs2_fill_new_dir_el() 2245 de = ocfs2_fill_initial_dirents(inode, parent, new_bh->b_data, size); in ocfs2_fill_new_dir_el() 2257 ocfs2_init_dir_trailer(inode, new_bh, size); in ocfs2_fill_new_dir_el() 2260 ocfs2_journal_dirty(handle, new_bh); in ocfs2_fill_new_dir_el() 2273 *ret_new_bh = new_bh; in ocfs2_fill_new_dir_el() [all …]
|
D | xattr.h | 83 struct buffer_head *new_bh,
|
D | xattr.c | 2865 struct buffer_head *new_bh = NULL; in ocfs2_create_xattr_block() local 2883 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_xattr_block() 2884 if (!new_bh) { in ocfs2_create_xattr_block() 2890 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_create_xattr_block() 2893 new_bh, in ocfs2_create_xattr_block() 2901 xblk = (struct ocfs2_xattr_block *)new_bh->b_data; in ocfs2_create_xattr_block() 2920 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block() 2932 *ret_bh = new_bh; in ocfs2_create_xattr_block() 2933 new_bh = NULL; in ocfs2_create_xattr_block() 2936 brelse(new_bh); in ocfs2_create_xattr_block() [all …]
|
D | ocfs2_trace.h | 2314 TP_PROTO(unsigned long long new_blkno, void *new_bh, 2316 TP_ARGS(new_blkno, new_bh, newdi_blkno), 2319 __field(void *, new_bh) 2324 __entry->new_bh = new_bh; 2327 TP_printk("%llu %p %llu", __entry->new_blkno, __entry->new_bh,
|
/linux-6.6.21/fs/bfs/ |
D | dir.c | 207 struct buffer_head *old_bh, *new_bh; in bfs_rename() local 215 old_bh = new_bh = NULL; in bfs_rename() 230 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de); in bfs_rename() 232 if (new_bh && !new_inode) { in bfs_rename() 233 brelse(new_bh); in bfs_rename() 234 new_bh = NULL; in bfs_rename() 236 if (!new_bh) { in bfs_rename() 255 brelse(new_bh); in bfs_rename()
|
/linux-6.6.21/fs/exfat/ |
D | namei.c | 1019 struct buffer_head *new_bh, *old_bh; in exfat_rename_file() local 1043 epnew = exfat_get_dentry(sb, p_dir, newentry, &new_bh); in exfat_rename_file() 1052 exfat_update_bh(new_bh, sync); in exfat_rename_file() 1054 brelse(new_bh); in exfat_rename_file() 1059 epnew = exfat_get_dentry(sb, p_dir, newentry + 1, &new_bh); in exfat_rename_file() 1066 exfat_update_bh(new_bh, sync); in exfat_rename_file() 1068 brelse(new_bh); in exfat_rename_file() 1104 struct buffer_head *mov_bh, *new_bh; in exfat_move_file() local 1124 epnew = exfat_get_dentry(sb, p_newdir, newentry, &new_bh); in exfat_move_file() 1133 exfat_update_bh(new_bh, IS_DIRSYNC(inode)); in exfat_move_file() [all …]
|
/linux-6.6.21/fs/ext4/ |
D | xattr.c | 1924 struct buffer_head *new_bh = NULL; in ext4_xattr_block_set() local 2064 new_bh = ext4_xattr_block_cache_find(inode, header(s->base), in ext4_xattr_block_set() 2066 if (new_bh) { in ext4_xattr_block_set() 2068 if (new_bh == bs->bh) in ext4_xattr_block_set() 2069 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set() 2082 BUFFER_TRACE(new_bh, "get_write_access"); in ext4_xattr_block_set() 2084 handle, sb, new_bh, in ext4_xattr_block_set() 2088 lock_buffer(new_bh); in ext4_xattr_block_set() 2096 ref = le32_to_cpu(BHDR(new_bh)->h_refcount) + 1; in ext4_xattr_block_set() 2102 unlock_buffer(new_bh); in ext4_xattr_block_set() [all …]
|
/linux-6.6.21/fs/affs/ |
D | file.c | 123 struct buffer_head *new_bh; in affs_alloc_extblock() local 130 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 131 if (!new_bh) { in affs_alloc_extblock() 136 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); in affs_alloc_extblock() 137 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 138 AFFS_TAIL(sb, new_bh)->stype = cpu_to_be32(ST_FILE); in affs_alloc_extblock() 139 AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino); in affs_alloc_extblock() 140 affs_fix_checksum(sb, new_bh); in affs_alloc_extblock() 142 mark_buffer_dirty_inode(new_bh, inode); in affs_alloc_extblock() 154 return new_bh; in affs_alloc_extblock()
|
/linux-6.6.21/fs/jbd2/ |
D | journal.c | 335 struct buffer_head *new_bh; in jbd2_journal_write_metadata_buffer() local 352 new_bh = alloc_buffer_head(GFP_NOFS|__GFP_NOFAIL); in jbd2_journal_write_metadata_buffer() 355 atomic_set(&new_bh->b_count, 1); in jbd2_journal_write_metadata_buffer() 401 brelse(new_bh); in jbd2_journal_write_metadata_buffer() 435 folio_set_bh(new_bh, new_folio, new_offset); in jbd2_journal_write_metadata_buffer() 436 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer() 437 new_bh->b_bdev = journal->j_dev; in jbd2_journal_write_metadata_buffer() 438 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 439 new_bh->b_private = bh_in; in jbd2_journal_write_metadata_buffer() 440 set_buffer_mapped(new_bh); in jbd2_journal_write_metadata_buffer() [all …]
|
/linux-6.6.21/fs/reiserfs/ |
D | fix_node.c | 829 struct buffer_head *new_bh, *Sh = PATH_H_PBUFFER(tb->tb_path, h); in get_empty_nodes() local 890 new_bh = sb_getblk(sb, *blocknr); in get_empty_nodes() 891 RFALSE(buffer_dirty(new_bh) || in get_empty_nodes() 892 buffer_journaled(new_bh) || in get_empty_nodes() 893 buffer_journal_dirty(new_bh), in get_empty_nodes() 895 new_bh); in get_empty_nodes() 901 set_buffer_journal_new(new_bh); in get_empty_nodes() 902 tb->FEB[tb->cur_blknum++] = new_bh; in get_empty_nodes()
|
/linux-6.6.21/fs/nilfs2/ |
D | segment.c | 1574 struct buffer_head *new_bh) in nilfs_list_replace_buffer() argument 1576 BUG_ON(!list_empty(&new_bh->b_assoc_buffers)); in nilfs_list_replace_buffer() 1578 list_replace_init(&old_bh->b_assoc_buffers, &new_bh->b_assoc_buffers); in nilfs_list_replace_buffer()
|