Home
last modified time | relevance | path

Searched refs:new_bh (Results 1 – 12 of 12) sorted by relevance

/linux/fs/ext2/
H A Dxattr.c710 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/fs/bfs/
H A Ddir.c207 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/fs/ocfs2/
H A Dbuffer_head_io.c95 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()
344 if (new_bh && bh) { in ocfs2_read_blocks()
H A Drefcounttree.c559 struct buffer_head *new_bh = NULL; in ocfs2_create_refcount_tree() local
606 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
607 if (!new_bh) { in ocfs2_create_refcount_tree()
612 ocfs2_set_new_buffer_uptodate(&new_tree->rf_ci, new_bh); in ocfs2_create_refcount_tree()
614 ret = ocfs2_journal_access_rb(handle, &new_tree->rf_ci, new_bh, in ocfs2_create_refcount_tree()
622 rb = (struct ocfs2_refcount_block *)new_bh->b_data; in ocfs2_create_refcount_tree()
637 ocfs2_journal_dirty(handle, new_bh); in ocfs2_create_refcount_tree()
684 brelse(new_bh); in ocfs2_create_refcount_tree()
1286 struct buffer_head *new_bh = NULL; in ocfs2_expand_inline_ref_root() local
1306 new_bh in ocfs2_expand_inline_ref_root()
1441 ocfs2_divide_leaf_refcount_block(struct buffer_head * ref_leaf_bh,struct buffer_head * new_bh,u32 * split_cpos) ocfs2_divide_leaf_refcount_block() argument
1519 struct buffer_head *new_bh = NULL; ocfs2_new_leaf_refcount_block() local
1740 struct buffer_head *new_bh = NULL; ocfs2_insert_refcount_rec() local
1832 struct buffer_head *new_bh = NULL; ocfs2_split_refcount_rec() local
3008 struct buffer_head *new_bh = NULL; ocfs2_duplicate_clusters_by_jbd() local
4151 struct buffer_head *new_bh = NULL; __ocfs2_reflink() local
[all...]
H A Ddir.c62 struct buffer_head **new_bh);
2247 struct buffer_head *new_bh = NULL; in ocfs2_fill_new_dir_el() local
2254 data_ac, NULL, &new_bh); in ocfs2_fill_new_dir_el()
2260 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_fill_new_dir_el()
2262 status = ocfs2_journal_access_db(handle, INODE_CACHE(inode), new_bh, in ocfs2_fill_new_dir_el()
2268 memset(new_bh->b_data, 0, osb->sb->s_blocksize); in ocfs2_fill_new_dir_el()
2270 de = ocfs2_fill_initial_dirents(inode, parent, new_bh->b_data, size); in ocfs2_fill_new_dir_el()
2282 ocfs2_init_dir_trailer(inode, new_bh, size); in ocfs2_fill_new_dir_el()
2285 ocfs2_journal_dirty(handle, new_bh); in ocfs2_fill_new_dir_el()
2298 *ret_new_bh = new_bh; in ocfs2_fill_new_dir_el()
[all …]
H A Dxattr.h83 struct buffer_head *new_bh,
H A Dxattr.c2873 struct buffer_head *new_bh = NULL; in ocfs2_create_xattr_block() local
2891 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_xattr_block()
2892 if (!new_bh) { in ocfs2_create_xattr_block()
2898 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), new_bh); in ocfs2_create_xattr_block()
2901 new_bh, in ocfs2_create_xattr_block()
2909 xblk = (struct ocfs2_xattr_block *)new_bh->b_data; in ocfs2_create_xattr_block()
2928 ocfs2_journal_dirty(ctxt->handle, new_bh); in ocfs2_create_xattr_block()
2940 *ret_bh = new_bh; in ocfs2_create_xattr_block()
2941 new_bh = NULL; in ocfs2_create_xattr_block()
2944 brelse(new_bh); in ocfs2_create_xattr_block()
2959 struct buffer_head *new_bh = NULL; ocfs2_xattr_block_set() local
6182 struct buffer_head *new_bh; global() member
6335 ocfs2_reflink_xattr_header(handle_t * handle,struct ocfs2_xattr_reflink * args,struct buffer_head * old_bh,struct ocfs2_xattr_header * xh,struct buffer_head * new_bh,struct ocfs2_xattr_header * new_xh,struct ocfs2_xattr_value_buf * vb,struct ocfs2_alloc_context * meta_ac,get_xattr_value_root * func,void * para) ocfs2_reflink_xattr_header() argument
7117 ocfs2_reflink_xattrs(struct inode * old_inode,struct buffer_head * old_bh,struct inode * new_inode,struct buffer_head * new_bh,bool preserve_security) ocfs2_reflink_xattrs() argument
[all...]
H A Docfs2_trace.h2312 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,
/linux/fs/ext4/
H A Dxattr.c1900 struct buffer_head *new_bh = NULL; in ext4_xattr_block_set() local
2037 new_bh = ext4_xattr_block_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
2038 if (IS_ERR(new_bh)) { in ext4_xattr_block_set()
2039 error = PTR_ERR(new_bh); in ext4_xattr_block_set()
2040 new_bh = NULL; in ext4_xattr_block_set()
2044 if (new_bh) { in ext4_xattr_block_set()
2046 if (new_bh == bs->bh) in ext4_xattr_block_set()
2047 ea_bdebug(new_bh, "keeping"); in ext4_xattr_block_set()
2060 BUFFER_TRACE(new_bh, "get_write_access"); in ext4_xattr_block_set()
2062 handle, sb, new_bh, in ext4_xattr_block_set()
[all …]
/linux/fs/affs/
H A Dfile.c123 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/fs/jbd2/
H A Djournal.c331 struct buffer_head *new_bh; in jbd2_journal_write_metadata_buffer() local
348 new_bh = alloc_buffer_head(GFP_NOFS|__GFP_NOFAIL); in jbd2_journal_write_metadata_buffer()
351 atomic_set(&new_bh->b_count, 1); in jbd2_journal_write_metadata_buffer()
411 folio_set_bh(new_bh, new_folio, new_offset); in jbd2_journal_write_metadata_buffer()
412 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer()
413 new_bh->b_bdev = journal->j_dev; in jbd2_journal_write_metadata_buffer()
414 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer()
415 new_bh->b_private = bh_in; in jbd2_journal_write_metadata_buffer()
416 set_buffer_mapped(new_bh); in jbd2_journal_write_metadata_buffer()
417 set_buffer_dirty(new_bh); in jbd2_journal_write_metadata_buffer()
[all …]
/linux/fs/nilfs2/
H A Dsegment.c1587 struct buffer_head *new_bh)
1589 BUG_ON(!list_empty(&new_bh->b_assoc_buffers)); in nilfs_segctor_update_payload_blocknr()
1591 list_replace_init(&old_bh->b_assoc_buffers, &new_bh->b_assoc_buffers); in nilfs_segctor_update_payload_blocknr()
1580 nilfs_list_replace_buffer(struct buffer_head * old_bh,struct buffer_head * new_bh) nilfs_list_replace_buffer() argument