| /linux-6.15/fs/ext2/ |
| H A D | xattr.c | 716 if (new_bh) { in ext2_xattr_set2() 734 unlock_buffer(new_bh); in ext2_xattr_set2() 738 new_bh = old_bh; in ext2_xattr_set2() 739 get_bh(new_bh); in ext2_xattr_set2() 760 lock_buffer(new_bh); in ext2_xattr_set2() 761 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2() 763 unlock_buffer(new_bh); in ext2_xattr_set2() 772 if (buffer_req(new_bh) && !buffer_uptodate(new_bh)) in ext2_xattr_set2() 778 EXT2_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; in ext2_xattr_set2() 786 if (new_bh && new_bh != old_bh) { in ext2_xattr_set2() [all …]
|
| /linux-6.15/fs/ocfs2/ |
| H A 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() 344 if (new_bh && bh) { in ocfs2_read_blocks()
|
| H A D | refcounttree.c | 607 if (!new_bh) { in ocfs2_create_refcount_tree() 684 brelse(new_bh); in ocfs2_create_refcount_tree() 1354 new_bh = NULL; in ocfs2_expand_inline_ref_root() 1356 brelse(new_bh); in ocfs2_expand_inline_ref_root() 1598 brelse(new_bh); in ocfs2_new_leaf_refcount_block() 1803 brelse(new_bh); in ocfs2_insert_refcount_rec() 1968 brelse(new_bh); in ocfs2_split_refcount_rec() 3036 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd() 3038 new_bh = NULL; in ocfs2_duplicate_clusters_by_jbd() 3042 brelse(new_bh); in ocfs2_duplicate_clusters_by_jbd() [all …]
|
| H A D | dir.c | 2298 *ret_new_bh = new_bh; in ocfs2_fill_new_dir_el() 2299 new_bh = NULL; in ocfs2_fill_new_dir_el() 2302 brelse(new_bh); in ocfs2_fill_new_dir_el() 3149 if (!*new_bh) { in ocfs2_do_extend_dir() 3201 &new_bh); in ocfs2_extend_dir() 3219 BUG_ON(new_bh == NULL); in ocfs2_extend_dir() 3227 brelse(new_bh); in ocfs2_extend_dir() 3228 new_bh = NULL; in ocfs2_extend_dir() 3320 dx_root_bh, new_bh); in ocfs2_extend_dir() 3342 *new_de_bh = new_bh; in ocfs2_extend_dir() [all …]
|
| H A D | xattr.h | 83 struct buffer_head *new_bh,
|
| H A D | xattr.c | 2892 if (!new_bh) { in ocfs2_create_xattr_block() 2901 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() 2966 0, &new_bh); in ocfs2_xattr_block_set() 2972 xs->xattr_bh = new_bh; in ocfs2_xattr_block_set() 6182 struct buffer_head *new_bh; member 6473 .vb_bh = args->new_bh, in ocfs2_reflink_xattr_inline() 6606 args->new_bh, in ocfs2_reflink_xattr_block() [all …]
|
| H A 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,
|
| /linux-6.15/fs/bfs/ |
| H A 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.15/fs/ext4/ |
| H A D | xattr.c | 2032 new_bh = NULL; in ext4_xattr_block_set() 2036 if (new_bh) { in ext4_xattr_block_set() 2076 brelse(new_bh); in ext4_xattr_block_set() 2079 new_bh = NULL; in ext4_xattr_block_set() 2091 new_bh); in ext4_xattr_block_set() 2102 new_bh = bs->bh; in ext4_xattr_block_set() 2103 get_bh(new_bh); in ext4_xattr_block_set() 2153 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set() 2159 new_bh); in ext4_xattr_block_set() 2169 EXT4_I(inode)->i_file_acl = new_bh ? new_bh->b_blocknr : 0; in ext4_xattr_block_set() [all …]
|
| /linux-6.15/fs/affs/ |
| H A 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.15/fs/jbd2/ |
| H A D | journal.c | 331 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-6.15/fs/nilfs2/ |
| H A D | segment.c | 1587 struct buffer_head *new_bh) in nilfs_list_replace_buffer() argument 1589 BUG_ON(!list_empty(&new_bh->b_assoc_buffers)); in nilfs_list_replace_buffer() 1591 list_replace_init(&old_bh->b_assoc_buffers, &new_bh->b_assoc_buffers); in nilfs_list_replace_buffer()
|