/linux-4.4.14/fs/ext2/ |
D | xattr.c | 624 struct buffer_head *new_bh = NULL; in ext2_xattr_set2() local 628 new_bh = ext2_xattr_cache_find(inode, header); in ext2_xattr_set2() 629 if (new_bh) { in ext2_xattr_set2() 631 if (new_bh == old_bh) { in ext2_xattr_set2() 632 ea_bdebug(new_bh, "keeping this block"); in ext2_xattr_set2() 636 ea_bdebug(new_bh, "reusing block"); in ext2_xattr_set2() 640 unlock_buffer(new_bh); in ext2_xattr_set2() 643 le32_add_cpu(&HDR(new_bh)->h_refcount, 1); in ext2_xattr_set2() 644 ea_bdebug(new_bh, "refcount now=%d", in ext2_xattr_set2() 645 le32_to_cpu(HDR(new_bh)->h_refcount)); in ext2_xattr_set2() [all …]
|
/linux-4.4.14/fs/ext4/ |
D | xattr.c | 779 struct buffer_head *new_bh = NULL; in ext4_xattr_block_set() local 866 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set() 867 if (new_bh) { in ext4_xattr_block_set() 869 if (new_bh == bs->bh) in ext4_xattr_block_set() 870 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set() 878 BUFFER_TRACE(new_bh, "get_write_access"); in ext4_xattr_block_set() 880 new_bh); in ext4_xattr_block_set() 883 lock_buffer(new_bh); in ext4_xattr_block_set() 884 le32_add_cpu(&BHDR(new_bh)->h_refcount, 1); in ext4_xattr_block_set() 885 ea_bdebug(new_bh, "reusing; refcount now=%d", in ext4_xattr_block_set() [all …]
|
/linux-4.4.14/fs/bfs/ |
D | dir.c | 213 struct buffer_head *old_bh, *new_bh; in bfs_rename() local 218 old_bh = new_bh = NULL; in bfs_rename() 235 new_bh = bfs_find_entry(new_dir, in bfs_rename() 239 if (new_bh && !new_inode) { in bfs_rename() 240 brelse(new_bh); in bfs_rename() 241 new_bh = NULL; in bfs_rename() 243 if (!new_bh) { in bfs_rename() 264 brelse(new_bh); in bfs_rename()
|
/linux-4.4.14/fs/ocfs2/ |
D | refcounttree.c | 566 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local 613 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree() 614 if (!new_bh) { in ocfs2_create_refcount_tree() 619 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree() 621 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree() 629 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree() 644 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree() 691 brelse(new_bh); in ocfs2_create_refcount_tree() 1293 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local 1313 new_bh = sb_getblk(sb, blkno); in ocfs2_expand_inline_ref_root() [all …]
|
D | dir.c | 81 struct buffer_head **new_bh); 2250 struct buffer_head *new_bh = NULL; in ocfs2_fill_new_dir_el() local 2257 data_ac, NULL, &new_bh); in ocfs2_fill_new_dir_el() 2263 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_fill_new_dir_el() 2265 status = ocfs2_journal_access_db(handle, INODE_CACHE(inode), new_bh, in ocfs2_fill_new_dir_el() 2271 memset(new_bh->b_data, 0, osb->sb->s_blocksize); in ocfs2_fill_new_dir_el() 2273 de = ocfs2_fill_initial_dirents(inode, parent, new_bh->b_data, size); in ocfs2_fill_new_dir_el() 2285 ocfs2_init_dir_trailer(inode, new_bh, size); in ocfs2_fill_new_dir_el() 2288 ocfs2_journal_dirty(handle, new_bh); in ocfs2_fill_new_dir_el() 2301 *ret_new_bh = new_bh; in ocfs2_fill_new_dir_el() [all …]
|
D | xattr.h | 93 struct buffer_head *new_bh,
|
D | xattr.c | 2854 struct buffer_head *new_bh = NULL; in ocfs2_create_xattr_block() local 2872 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_xattr_block() 2873 if (!new_bh) { in ocfs2_create_xattr_block() 2879 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_create_xattr_block() 2882 new_bh, in ocfs2_create_xattr_block() 2890 xblk = (struct ocfs2_xattr_block *)new_bh->b_data; in ocfs2_create_xattr_block() 2909 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block() 2921 *ret_bh = new_bh; in ocfs2_create_xattr_block() 2922 new_bh = NULL; in ocfs2_create_xattr_block() 2925 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-4.4.14/fs/affs/ |
D | file.c | 120 struct buffer_head *new_bh; in affs_alloc_extblock() local 127 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 128 if (!new_bh) { in affs_alloc_extblock() 133 AFFS_HEAD(new_bh)->ptype = cpu_to_be32(T_LIST); in affs_alloc_extblock() 134 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 135 AFFS_TAIL(sb, new_bh)->stype = cpu_to_be32(ST_FILE); in affs_alloc_extblock() 136 AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino); in affs_alloc_extblock() 137 affs_fix_checksum(sb, new_bh); in affs_alloc_extblock() 139 mark_buffer_dirty_inode(new_bh, inode); in affs_alloc_extblock() 151 return new_bh; in affs_alloc_extblock()
|
/linux-4.4.14/fs/jbd2/ |
D | journal.c | 357 struct buffer_head *new_bh; in jbd2_journal_write_metadata_buffer() local 374 new_bh = alloc_buffer_head(GFP_NOFS|__GFP_NOFAIL); in jbd2_journal_write_metadata_buffer() 377 atomic_set(&new_bh->b_count, 1); in jbd2_journal_write_metadata_buffer() 424 brelse(new_bh); in jbd2_journal_write_metadata_buffer() 460 set_bh_page(new_bh, new_page, new_offset); in jbd2_journal_write_metadata_buffer() 461 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer() 462 new_bh->b_bdev = journal->j_dev; in jbd2_journal_write_metadata_buffer() 463 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 464 new_bh->b_private = bh_in; in jbd2_journal_write_metadata_buffer() 465 set_buffer_mapped(new_bh); in jbd2_journal_write_metadata_buffer() [all …]
|
/linux-4.4.14/fs/reiserfs/ |
D | fix_node.c | 831 struct buffer_head *new_bh, *Sh = PATH_H_PBUFFER(tb->tb_path, h); in get_empty_nodes() local 892 new_bh = sb_getblk(sb, *blocknr); in get_empty_nodes() 893 RFALSE(buffer_dirty(new_bh) || in get_empty_nodes() 894 buffer_journaled(new_bh) || in get_empty_nodes() 895 buffer_journal_dirty(new_bh), in get_empty_nodes() 897 new_bh); in get_empty_nodes() 903 set_buffer_journal_new(new_bh); in get_empty_nodes() 904 tb->FEB[tb->cur_blknum++] = new_bh; in get_empty_nodes()
|
/linux-4.4.14/fs/nilfs2/ |
D | segment.c | 1536 struct buffer_head *new_bh) in nilfs_list_replace_buffer() argument 1538 BUG_ON(!list_empty(&new_bh->b_assoc_buffers)); in nilfs_list_replace_buffer() 1540 list_replace_init(&old_bh->b_assoc_buffers, &new_bh->b_assoc_buffers); in nilfs_list_replace_buffer()
|