/kernel/linux/linux-6.6/fs/ |
H A D | buffer.c | 57 static void submit_bh_wbc(blk_opf_t opf, struct buffer_head *bh, 62 inline void touch_buffer(struct buffer_head *bh) in touch_buffer() argument 64 trace_block_touch_buffer(bh); in touch_buffer() 65 folio_mark_accessed(bh->b_folio); in touch_buffer() 69 void __lock_buffer(struct buffer_head *bh) in __lock_buffer() argument 71 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer() 75 void unlock_buffer(struct buffer_head *bh) in unlock_buffer() argument 77 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer() 79 wake_up_bit(&bh->b_state, BH_Lock); in unlock_buffer() 91 struct buffer_head *head, *bh; in buffer_check_dirty_writeback() local 121 __wait_on_buffer(struct buffer_head * bh) __wait_on_buffer() argument 127 buffer_io_error(struct buffer_head *bh, char *msg) buffer_io_error() argument 143 __end_buffer_read_notouch(struct buffer_head *bh, int uptodate) __end_buffer_read_notouch() argument 158 end_buffer_read_sync(struct buffer_head *bh, int uptodate) end_buffer_read_sync() argument 165 end_buffer_write_sync(struct buffer_head *bh, int uptodate) end_buffer_write_sync() argument 196 struct buffer_head *bh; __find_get_block_slow() local 245 end_buffer_async_read(struct buffer_head *bh, int uptodate) end_buffer_async_read() argument 301 struct buffer_head *bh; global() member 308 struct buffer_head *bh = ctx->bh; verify_bh() local 316 need_fsverity(struct buffer_head *bh) need_fsverity() argument 330 struct buffer_head *bh = ctx->bh; decrypt_bh() local 353 end_buffer_async_read_io(struct buffer_head *bh, int uptodate) end_buffer_async_read_io() argument 384 end_buffer_async_write(struct buffer_head *bh, int uptodate) end_buffer_async_write() argument 447 mark_buffer_async_read(struct buffer_head *bh) mark_buffer_async_read() argument 453 mark_buffer_async_write_endio(struct buffer_head *bh, bh_end_io_t *handler) mark_buffer_async_write_endio() argument 460 mark_buffer_async_write(struct buffer_head *bh) mark_buffer_async_write() argument 519 __remove_assoc_queue(struct buffer_head *bh) __remove_assoc_queue() argument 543 struct buffer_head *bh; osync_buffers_list() local 668 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); write_boundary_block() local 676 mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode) mark_buffer_dirty_inode() argument 730 struct buffer_head *bh = head; block_dirty_folio() local 778 struct buffer_head *bh; fsync_buffers_list() local 896 struct buffer_head *bh = BH_ENTRY(list->next); remove_inode_buffers() local 920 struct buffer_head *bh, *head; folio_alloc_buffers() local 977 struct buffer_head *bh, *tail; link_dev_buffers() local 1007 struct buffer_head *bh = head; folio_init_buffers() local 1043 struct buffer_head *bh; grow_dev_page() local 1138 struct buffer_head *bh; __getblk_slow() local 1186 mark_buffer_dirty(struct buffer_head *bh) mark_buffer_dirty() argument 1221 mark_buffer_write_io_error(struct buffer_head *bh) mark_buffer_write_io_error() argument 1255 __bforget(struct buffer_head *bh) __bforget() argument 1270 __bread_slow(struct buffer_head *bh) __bread_slow() argument 1330 bh_lru_install(struct buffer_head *bh) bh_lru_install() argument 1380 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); lookup_bh_lru() local 1409 struct buffer_head *bh = lookup_bh_lru(bdev, block, size); __find_get_block() local 1435 struct buffer_head *bh = __find_get_block(bdev, block, size); __getblk_gfp() local 1449 struct buffer_head *bh = __getblk(bdev, block, size); __breadahead() local 1473 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); __bread_gfp() local 1536 folio_set_bh(struct buffer_head *bh, struct folio *folio, unsigned long offset) folio_set_bh() argument 1560 discard_buffer(struct buffer_head * bh) discard_buffer() argument 1591 struct buffer_head *head, *bh, *next; block_invalidate_folio() local 1646 struct buffer_head *bh, *head, *tail; folio_create_empty_buffers() local 1708 struct buffer_head *bh; clean_bdev_aliases() local 1816 struct buffer_head *bh, *head; __block_write_full_folio() local 1979 struct buffer_head *head, *bh; folio_zero_new_buffers() local 2015 iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, const struct iomap *iomap) iomap_to_bh() argument 2092 struct buffer_head *bh, *head, *wait[2], **wait_bh=wait; __block_write_begin_int() local 2179 struct buffer_head *bh, *head; __block_commit_write() local 2324 struct buffer_head *bh, *head; block_is_partially_uptodate() local 2367 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; block_read_full_folio() local 2661 struct buffer_head *bh; block_truncate_page() local 2775 struct buffer_head *bh = bio->bi_private; end_bio_bh_io_sync() local 2784 submit_bh_wbc(blk_opf_t opf, struct buffer_head *bh, struct writeback_control *wbc) submit_bh_wbc() argument 2829 submit_bh(blk_opf_t opf, struct buffer_head *bh) submit_bh() argument 2835 write_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags) write_dirty_buffer() argument 2853 __sync_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags) __sync_dirty_buffer() argument 2880 sync_dirty_buffer(struct buffer_head *bh) sync_dirty_buffer() argument 2906 buffer_busy(struct buffer_head *bh) buffer_busy() argument 2916 struct buffer_head *bh; drop_buffers() local 2976 struct buffer_head *bh = buffers_to_free; try_to_free_buffers() local 3036 free_buffer_head(struct buffer_head *bh) free_buffer_head() argument 3068 bh_uptodate_or_lock(struct buffer_head *bh) bh_uptodate_or_lock() argument 3088 __bh_read(struct buffer_head *bh, blk_opf_t op_flags, bool wait) __bh_read() argument 3122 struct buffer_head *bh = bhs[i]; __bh_read_batch() local [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | buffer.c | 55 static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, 60 inline void touch_buffer(struct buffer_head *bh) in touch_buffer() argument 62 trace_block_touch_buffer(bh); in touch_buffer() 63 mark_page_accessed(bh->b_page); in touch_buffer() 67 void __lock_buffer(struct buffer_head *bh) in __lock_buffer() argument 69 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer() 73 void unlock_buffer(struct buffer_head *bh) in unlock_buffer() argument 75 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer() 77 wake_up_bit(&bh->b_state, BH_Lock); in unlock_buffer() 89 struct buffer_head *head, *bh; in buffer_check_dirty_writeback() local 120 __wait_on_buffer(struct buffer_head * bh) __wait_on_buffer() argument 126 buffer_io_error(struct buffer_head *bh, char *msg) buffer_io_error() argument 142 __end_buffer_read_notouch(struct buffer_head *bh, int uptodate) __end_buffer_read_notouch() argument 157 end_buffer_read_sync(struct buffer_head *bh, int uptodate) end_buffer_read_sync() argument 164 end_buffer_write_sync(struct buffer_head *bh, int uptodate) end_buffer_write_sync() argument 195 struct buffer_head *bh; __find_get_block_slow() local 244 end_buffer_async_read(struct buffer_head *bh, int uptodate) end_buffer_async_read() argument 300 struct buffer_head *bh; global() member 307 struct buffer_head *bh = ctx->bh; decrypt_bh() local 320 end_buffer_async_read_io(struct buffer_head *bh, int uptodate) end_buffer_async_read_io() argument 342 end_buffer_async_write(struct buffer_head *bh, int uptodate) end_buffer_async_write() argument 405 mark_buffer_async_read(struct buffer_head *bh) mark_buffer_async_read() argument 411 mark_buffer_async_write_endio(struct buffer_head *bh, bh_end_io_t *handler) mark_buffer_async_write_endio() argument 418 mark_buffer_async_write(struct buffer_head *bh) mark_buffer_async_write() argument 477 __remove_assoc_queue(struct buffer_head *bh) __remove_assoc_queue() argument 501 struct buffer_head *bh; osync_buffers_list() local 562 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); write_boundary_block() local 570 mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode) mark_buffer_dirty_inode() argument 652 struct buffer_head *bh = head; __set_page_dirty_buffers() local 700 struct buffer_head *bh; fsync_buffers_list() local 818 struct buffer_head *bh = BH_ENTRY(list->next); remove_inode_buffers() local 842 struct buffer_head *bh, *head; alloc_page_buffers() local 892 struct buffer_head *bh, *tail; link_dev_buffers() local 923 struct buffer_head *bh = head; init_page_buffers() local 959 struct buffer_head *bh; grow_dev_page() local 1063 struct buffer_head *bh; __getblk_slow() local 1111 mark_buffer_dirty(struct buffer_head *bh) mark_buffer_dirty() argument 1146 mark_buffer_write_io_error(struct buffer_head *bh) mark_buffer_write_io_error() argument 1185 __bforget(struct buffer_head *bh) __bforget() argument 1200 __bread_slow(struct buffer_head *bh) __bread_slow() argument 1260 bh_lru_install(struct buffer_head *bh) bh_lru_install() argument 1295 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); lookup_bh_lru() local 1324 struct buffer_head *bh = lookup_bh_lru(bdev, block, size); __find_get_block() local 1350 struct buffer_head *bh = __find_get_block(bdev, block, size); __getblk_gfp() local 1364 struct buffer_head *bh = __getblk(bdev, block, size); __breadahead() local 1375 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); __breadahead_gfp() local 1399 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); __bread_gfp() local 1443 set_bh_page(struct buffer_head *bh, struct page *page, unsigned long offset) set_bh_page() argument 1467 discard_buffer(struct buffer_head * bh) discard_buffer() argument 1504 struct buffer_head *head, *bh, *next; block_invalidatepage() local 1559 struct buffer_head *bh, *head, *tail; create_empty_buffers() local 1614 struct buffer_head *bh; clean_bdev_aliases() local 1719 struct buffer_head *bh, *head; __block_write_full_page() local 1884 struct buffer_head *head, *bh; page_zero_new_buffers() local 1919 iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, struct iomap *iomap) iomap_to_bh() argument 1983 struct buffer_head *bh, *head, *wait[2], **wait_bh=wait; __block_write_begin_int() local 2071 struct buffer_head *bh, *head; __block_commit_write() local 2219 struct buffer_head *bh, *head; block_is_partially_uptodate() local 2263 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; block_read_full_page() local 2543 end_buffer_read_nobh(struct buffer_head *bh, int uptodate) end_buffer_read_nobh() argument 2555 struct buffer_head *bh; attach_nobh_buffers() local 2585 struct buffer_head *head, *bh; nobh_write_begin() local 2724 struct buffer_head *bh; nobh_write_end() local 2883 struct buffer_head *bh; block_truncate_page() local 3000 struct buffer_head *bh = bio->bi_private; end_bio_bh_io_sync() local 3009 submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, enum rw_hint write_hint, struct writeback_control *wbc) submit_bh_wbc() argument 3058 submit_bh(int op, int op_flags, struct buffer_head *bh) submit_bh() argument 3095 struct buffer_head *bh = bhs[i]; ll_rw_block() local 3119 write_dirty_buffer(struct buffer_head *bh, int op_flags) write_dirty_buffer() argument 3137 __sync_dirty_buffer(struct buffer_head *bh, int op_flags) __sync_dirty_buffer() argument 3166 sync_dirty_buffer(struct buffer_head *bh) sync_dirty_buffer() argument 3192 buffer_busy(struct buffer_head *bh) buffer_busy() argument 3202 struct buffer_head *bh; drop_buffers() local 3262 struct buffer_head *bh = buffers_to_free; try_to_free_buffers() local 3349 free_buffer_head(struct buffer_head *bh) free_buffer_head() argument 3381 bh_uptodate_or_lock(struct buffer_head *bh) bh_uptodate_or_lock() argument 3399 bh_submit_read(struct buffer_head *bh) bh_submit_read() argument [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | buffer_head_io.c | 29 * Bits on bh->b_state used by ocfs2. 40 int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, in ocfs2_write_block() argument 45 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block() 47 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO); in ocfs2_write_block() 48 BUG_ON(buffer_jbd(bh)); in ocfs2_write_block() 61 lock_buffer(bh); in ocfs2_write_block() 62 set_buffer_uptodate(bh); in ocfs2_write_block() 65 clear_buffer_dirty(bh); in ocfs2_write_block() 67 get_bh(bh); /* for end_buffer_write_sync() */ in ocfs2_write_block() 68 bh in ocfs2_write_block() 96 struct buffer_head *bh; ocfs2_read_blocks_sync() local 195 ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) ocfs2_read_blocks() argument 202 struct buffer_head *bh; ocfs2_read_blocks() local 430 ocfs2_write_super_or_backup(struct ocfs2_super *osb, struct buffer_head *bh) ocfs2_write_super_or_backup() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | buffer_head_io.c | 27 * Bits on bh->b_state used by ocfs2. 38 int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh, in ocfs2_write_block() argument 43 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block() 45 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO); in ocfs2_write_block() 46 BUG_ON(buffer_jbd(bh)); in ocfs2_write_block() 59 lock_buffer(bh); in ocfs2_write_block() 60 set_buffer_uptodate(bh); in ocfs2_write_block() 63 clear_buffer_dirty(bh); in ocfs2_write_block() 65 get_bh(bh); /* for end_buffer_write_sync() */ in ocfs2_write_block() 66 bh in ocfs2_write_block() 94 struct buffer_head *bh; ocfs2_read_blocks_sync() local 193 ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) ocfs2_read_blocks() argument 200 struct buffer_head *bh; ocfs2_read_blocks() local 428 ocfs2_write_super_or_backup(struct ocfs2_super *osb, struct buffer_head *bh) ocfs2_write_super_or_backup() argument [all...] |
/kernel/linux/linux-5.10/fs/hpfs/ |
H A D | buffer.c | 40 struct buffer_head *bh; in hpfs_prefetch_sectors() local 49 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors() 50 if (bh) { in hpfs_prefetch_sectors() 51 if (buffer_uptodate(bh)) { in hpfs_prefetch_sectors() 52 brelse(bh); in hpfs_prefetch_sectors() 55 brelse(bh); in hpfs_prefetch_sectors() 74 struct buffer_head *bh; in hpfs_map_sector() local 82 *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); in hpfs_map_sector() 83 if (bh != NULL) in hpfs_map_sector() 84 return bh in hpfs_map_sector() 95 struct buffer_head *bh; hpfs_get_sector() local [all...] |
/kernel/linux/linux-6.6/fs/hpfs/ |
H A D | buffer.c | 40 struct buffer_head *bh; in hpfs_prefetch_sectors() local 49 bh = sb_find_get_block(s, secno); in hpfs_prefetch_sectors() 50 if (bh) { in hpfs_prefetch_sectors() 51 if (buffer_uptodate(bh)) { in hpfs_prefetch_sectors() 52 brelse(bh); in hpfs_prefetch_sectors() 55 brelse(bh); in hpfs_prefetch_sectors() 74 struct buffer_head *bh; in hpfs_map_sector() local 82 *bhp = bh = sb_bread(s, hpfs_search_hotfix_map(s, secno)); in hpfs_map_sector() 83 if (bh != NULL) in hpfs_map_sector() 84 return bh in hpfs_map_sector() 95 struct buffer_head *bh; hpfs_get_sector() local [all...] |
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | meta_io.c | 35 struct buffer_head *bh, *head; in gfs2_aspace_writepage() local 43 bh = head; in gfs2_aspace_writepage() 46 if (!buffer_mapped(bh)) in gfs2_aspace_writepage() 56 lock_buffer(bh); in gfs2_aspace_writepage() 57 } else if (!trylock_buffer(bh)) { in gfs2_aspace_writepage() 61 if (test_clear_buffer_dirty(bh)) { in gfs2_aspace_writepage() 62 mark_buffer_async_write(bh); in gfs2_aspace_writepage() 64 unlock_buffer(bh); in gfs2_aspace_writepage() 66 } while ((bh = bh in gfs2_aspace_writepage() 115 struct buffer_head *bh; gfs2_getbuf() local 158 meta_prep_new(struct buffer_head *bh) meta_prep_new() argument 180 struct buffer_head *bh; gfs2_meta_new() local 193 struct buffer_head *bh = page_buffers(page); gfs2_meta_read_endio() local 216 struct buffer_head *bh = *bhs; gfs2_submit_bhs() local 251 struct buffer_head *bh, *bhs[2]; gfs2_meta_read() local 311 gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) gfs2_meta_wait() argument 330 gfs2_remove_from_journal(struct buffer_head *bh, int meta) gfs2_remove_from_journal() argument 380 struct buffer_head *bh; gfs2_ail1_wipe() local 404 struct buffer_head *bh; gfs2_getjdatabuf() local 437 struct buffer_head *bh; gfs2_journal_wipe() local 479 struct buffer_head *bh; gfs2_meta_indirect_buffer() local 509 struct buffer_head *first_bh, *bh; gfs2_meta_ra() local [all...] |
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | meta_io.c | 35 struct buffer_head *bh, *head; in gfs2_aspace_writepage() local 43 bh = head; in gfs2_aspace_writepage() 46 if (!buffer_mapped(bh)) in gfs2_aspace_writepage() 56 lock_buffer(bh); in gfs2_aspace_writepage() 57 } else if (!trylock_buffer(bh)) { in gfs2_aspace_writepage() 61 if (test_clear_buffer_dirty(bh)) { in gfs2_aspace_writepage() 62 mark_buffer_async_write(bh); in gfs2_aspace_writepage() 64 unlock_buffer(bh); in gfs2_aspace_writepage() 66 } while ((bh = bh in gfs2_aspace_writepage() 119 struct buffer_head *bh; gfs2_getbuf() local 166 meta_prep_new(struct buffer_head *bh) meta_prep_new() argument 188 struct buffer_head *bh; gfs2_meta_new() local 201 struct buffer_head *bh = page_buffers(page); gfs2_meta_read_endio() local 223 struct buffer_head *bh = *bhs; gfs2_submit_bhs() local 257 struct buffer_head *bh, *bhs[2]; gfs2_meta_read() local 316 gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh) gfs2_meta_wait() argument 335 gfs2_remove_from_journal(struct buffer_head *bh, int meta) gfs2_remove_from_journal() argument 385 struct buffer_head *bh; gfs2_ail1_wipe() local 409 struct buffer_head *bh; gfs2_getjdatabuf() local 442 struct buffer_head *bh; gfs2_journal_wipe() local 490 struct buffer_head *bh; gfs2_meta_buffer() local 519 struct buffer_head *first_bh, *bh; gfs2_meta_ra() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | buffer_head.h | 48 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate); 63 struct page *b_page; /* the page this bh is mapped to */ 64 struct folio *b_folio; /* the folio this bh is mapped to */ 78 spinlock_t b_uptodate_lock; /* Used by the first bh in a page, to 90 static __always_inline void set_buffer_##name(struct buffer_head *bh) \ 92 if (!test_bit(BH_##bit, &(bh)->b_state)) \ 93 set_bit(BH_##bit, &(bh)->b_state); \ 95 static __always_inline void clear_buffer_##name(struct buffer_head *bh) \ 97 clear_bit(BH_##bit, &(bh)->b_state); \ 99 static __always_inline int buffer_##name(const struct buffer_head *bh) \ 139 set_buffer_uptodate(struct buffer_head *bh) set_buffer_uptodate() argument 160 clear_buffer_uptodate(struct buffer_head *bh) clear_buffer_uptodate() argument 165 buffer_uptodate(const struct buffer_head *bh) buffer_uptodate() argument 174 bh_offset(const struct buffer_head *bh) bh_offset() argument 220 clean_bdev_bh_alias(struct buffer_head *bh) clean_bdev_bh_alias() argument 300 get_bh(struct buffer_head *bh) get_bh() argument 305 put_bh(struct buffer_head *bh) put_bh() argument 311 brelse(struct buffer_head *bh) brelse() argument 317 bforget(struct buffer_head *bh) bforget() argument 361 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) map_bh() argument 369 wait_on_buffer(struct buffer_head *bh) wait_on_buffer() argument 376 trylock_buffer(struct buffer_head *bh) trylock_buffer() argument 381 lock_buffer(struct buffer_head *bh) lock_buffer() argument 402 bh_readahead(struct buffer_head *bh, blk_opf_t op_flags) bh_readahead() argument 412 bh_read_nowait(struct buffer_head *bh, blk_opf_t op_flags) bh_read_nowait() argument 419 bh_read(struct buffer_head *bh, blk_opf_t op_flags) bh_read() argument [all...] |
/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | btnode.c | 50 struct buffer_head *bh; in nilfs_btnode_create_block() local 52 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block() 53 if (unlikely(!bh)) in nilfs_btnode_create_block() 56 if (unlikely(buffer_mapped(bh) || buffer_uptodate(bh) || in nilfs_btnode_create_block() 57 buffer_dirty(bh))) { in nilfs_btnode_create_block() 58 brelse(bh); in nilfs_btnode_create_block() 61 memset(bh->b_data, 0, i_blocksize(inode)); in nilfs_btnode_create_block() 62 bh->b_bdev = inode->i_sb->s_bdev; in nilfs_btnode_create_block() 63 bh in nilfs_btnode_create_block() 76 struct buffer_head *bh; nilfs_btnode_submit_block() local 145 nilfs_btnode_delete(struct buffer_head *bh) nilfs_btnode_delete() argument [all...] |
H A D | gcinode.c | 62 struct buffer_head *bh; in nilfs_gccache_submit_read_data() local 65 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); in nilfs_gccache_submit_read_data() 66 if (unlikely(!bh)) in nilfs_gccache_submit_read_data() 69 if (buffer_uptodate(bh)) in nilfs_gccache_submit_read_data() 80 lock_buffer(bh); in nilfs_gccache_submit_read_data() 81 if (buffer_uptodate(bh)) { in nilfs_gccache_submit_read_data() 82 unlock_buffer(bh); in nilfs_gccache_submit_read_data() 86 if (!buffer_mapped(bh)) { in nilfs_gccache_submit_read_data() 87 bh->b_bdev = inode->i_sb->s_bdev; in nilfs_gccache_submit_read_data() 88 set_buffer_mapped(bh); in nilfs_gccache_submit_read_data() 140 nilfs_gccache_wait_and_mark_dirty(struct buffer_head *bh) nilfs_gccache_wait_and_mark_dirty() argument [all...] |
H A D | page.c | 34 struct buffer_head *bh; in __nilfs_get_page_block() local 40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block() 42 touch_buffer(bh); in __nilfs_get_page_block() 43 wait_on_buffer(bh); in __nilfs_get_page_block() 44 return bh; in __nilfs_get_page_block() 55 struct buffer_head *bh; in nilfs_grab_buffer() local 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 62 if (unlikely(!bh)) { in nilfs_grab_buffer() 67 return bh; in nilfs_grab_buffer() 72 * @bh 74 nilfs_forget_buffer(struct buffer_head *bh) nilfs_forget_buffer() argument 104 struct buffer_head *bh; nilfs_copy_buffer() local 142 struct buffer_head *bh, *head; nilfs_page_buffers_clean() local 172 struct buffer_head *bh, *head; nilfs_page_bug() local 408 struct buffer_head *bh, *head; nilfs_clear_dirty_page() local 434 struct buffer_head *bh, *head; nilfs_page_count_clean_buffers() local 532 struct buffer_head *bh, *head; nilfs_find_uncommitted_extent() local [all...] |
H A D | mdt.c | 31 struct buffer_head *bh, in nilfs_mdt_insert_new_block() 41 /* set_buffer_new(bh); */ in nilfs_mdt_insert_new_block() 42 bh->b_blocknr = 0; in nilfs_mdt_insert_new_block() 44 ret = nilfs_bmap_insert(ii->i_bmap, block, (unsigned long)bh); in nilfs_mdt_insert_new_block() 48 set_buffer_mapped(bh); in nilfs_mdt_insert_new_block() 50 kaddr = kmap_atomic(bh->b_page); in nilfs_mdt_insert_new_block() 51 memset(kaddr + bh_offset(bh), 0, i_blocksize(inode)); in nilfs_mdt_insert_new_block() 53 init_block(inode, bh, kaddr); in nilfs_mdt_insert_new_block() 54 flush_dcache_page(bh->b_page); in nilfs_mdt_insert_new_block() 57 set_buffer_uptodate(bh); in nilfs_mdt_insert_new_block() 30 nilfs_mdt_insert_new_block(struct inode *inode, unsigned long block, struct buffer_head *bh, void (*init_block)(struct inode *, struct buffer_head *, void *)) nilfs_mdt_insert_new_block() argument 74 struct buffer_head *bh; nilfs_mdt_create_block() local 117 struct buffer_head *bh; nilfs_mdt_submit_block() local 170 struct buffer_head *first_bh, *bh; nilfs_mdt_read_block() local 374 struct buffer_head *bh; nilfs_mdt_forget_block() local 556 nilfs_mdt_freeze_buffer(struct inode *inode, struct buffer_head *bh) nilfs_mdt_freeze_buffer() argument 588 nilfs_mdt_get_frozen_buffer(struct inode *inode, struct buffer_head *bh) nilfs_mdt_get_frozen_buffer() argument 610 struct buffer_head *bh; nilfs_release_frozen_buffers() local [all...] |
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | btnode.c | 50 struct buffer_head *bh; in nilfs_btnode_create_block() local 52 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block() 53 if (unlikely(!bh)) in nilfs_btnode_create_block() 56 if (unlikely(buffer_mapped(bh) || buffer_uptodate(bh) || in nilfs_btnode_create_block() 57 buffer_dirty(bh))) { in nilfs_btnode_create_block() 58 brelse(bh); in nilfs_btnode_create_block() 61 memset(bh->b_data, 0, i_blocksize(inode)); in nilfs_btnode_create_block() 62 bh->b_bdev = inode->i_sb->s_bdev; in nilfs_btnode_create_block() 63 bh in nilfs_btnode_create_block() 76 struct buffer_head *bh; nilfs_btnode_submit_block() local 145 nilfs_btnode_delete(struct buffer_head *bh) nilfs_btnode_delete() argument [all...] |
H A D | gcinode.c | 62 struct buffer_head *bh; in nilfs_gccache_submit_read_data() local 65 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); in nilfs_gccache_submit_read_data() 66 if (unlikely(!bh)) in nilfs_gccache_submit_read_data() 69 if (buffer_uptodate(bh)) in nilfs_gccache_submit_read_data() 80 lock_buffer(bh); in nilfs_gccache_submit_read_data() 81 if (buffer_uptodate(bh)) { in nilfs_gccache_submit_read_data() 82 unlock_buffer(bh); in nilfs_gccache_submit_read_data() 86 if (!buffer_mapped(bh)) { in nilfs_gccache_submit_read_data() 87 bh->b_bdev = inode->i_sb->s_bdev; in nilfs_gccache_submit_read_data() 88 set_buffer_mapped(bh); in nilfs_gccache_submit_read_data() 139 nilfs_gccache_wait_and_mark_dirty(struct buffer_head *bh) nilfs_gccache_wait_and_mark_dirty() argument [all...] |
H A D | page.c | 34 struct buffer_head *bh; in __nilfs_get_page_block() local 40 bh = nilfs_page_get_nth_block(page, block - first_block); in __nilfs_get_page_block() 42 touch_buffer(bh); in __nilfs_get_page_block() 43 wait_on_buffer(bh); in __nilfs_get_page_block() 44 return bh; in __nilfs_get_page_block() 55 struct buffer_head *bh; in nilfs_grab_buffer() local 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 62 if (unlikely(!bh)) { in nilfs_grab_buffer() 67 return bh; in nilfs_grab_buffer() 72 * @bh 74 nilfs_forget_buffer(struct buffer_head *bh) nilfs_forget_buffer() argument 104 struct buffer_head *bh; nilfs_copy_buffer() local 142 struct buffer_head *bh, *head; nilfs_page_buffers_clean() local 172 struct buffer_head *bh, *head; nilfs_page_bug() local 409 struct buffer_head *bh, *head; nilfs_clear_dirty_page() local 435 struct buffer_head *bh, *head; nilfs_page_count_clean_buffers() local 517 struct buffer_head *bh, *head; nilfs_find_uncommitted_extent() local [all...] |
/kernel/linux/linux-6.6/fs/ext2/ |
H A D | xattr.c | 53 * by the bh lock. No more than a single bh lock is held at any time 69 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data)) 71 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1) 81 # define ea_bdebug(bh, f...) do { \ 83 bh->b_bdev, (unsigned long) bh->b_blocknr); \ 89 # define ea_bdebug(bh, 199 struct buffer_head *bh = NULL; ext2_xattr_get() local 291 struct buffer_head *bh = NULL; ext2_xattr_list() local 410 struct buffer_head *bh = NULL; ext2_xattr_set() local 653 ext2_xattr_release_block(struct inode *inode, struct buffer_head *bh) ext2_xattr_release_block() argument 819 struct buffer_head *bh = NULL; ext2_xattr_delete_inode() local 872 ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh) ext2_xattr_cache_insert() argument 950 struct buffer_head *bh; ext2_xattr_cache_find() local [all...] |
/kernel/linux/linux-5.10/fs/omfs/ |
H A D | dir.c | 38 struct buffer_head *bh; in omfs_scan_list() local 44 bh = omfs_bread(dir->i_sb, block); in omfs_scan_list() 45 if (!bh) { in omfs_scan_list() 50 oi = (struct omfs_inode *) bh->b_data; in omfs_scan_list() 52 brelse(bh); in omfs_scan_list() 57 return bh; in omfs_scan_list() 61 brelse(bh); in omfs_scan_list() 70 struct buffer_head *bh; in omfs_find_entry() local 74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry() 75 if (!bh) in omfs_find_entry() 87 struct buffer_head *bh; omfs_make_empty() local 117 struct buffer_head *bh; omfs_add_link() local 163 struct buffer_head *bh, *bh2; omfs_delete_entry() local 219 struct buffer_head *bh; omfs_dir_is_empty() local 296 struct buffer_head *bh; omfs_lookup() local 334 struct buffer_head *bh = omfs_bread(dir->i_sb, fsblock); omfs_fill_chain() local 410 struct buffer_head *bh; omfs_readdir() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | buffer_head.h | 49 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate); 63 struct page *b_page; /* the page this bh is mapped to */ 76 spinlock_t b_uptodate_lock; /* Used by the first bh in a page, to 88 static __always_inline void set_buffer_##name(struct buffer_head *bh) \ 90 if (!test_bit(BH_##bit, &(bh)->b_state)) \ 91 set_bit(BH_##bit, &(bh)->b_state); \ 93 static __always_inline void clear_buffer_##name(struct buffer_head *bh) \ 95 clear_bit(BH_##bit, &(bh)->b_state); \ 97 static __always_inline int buffer_##name(const struct buffer_head *bh) \ 99 return test_bit(BH_##bit, &(bh) 137 set_buffer_uptodate(struct buffer_head *bh) set_buffer_uptodate() argument 158 clear_buffer_uptodate(struct buffer_head *bh) clear_buffer_uptodate() argument 163 buffer_uptodate(const struct buffer_head *bh) buffer_uptodate() argument 211 clean_bdev_bh_alias(struct buffer_head *bh) clean_bdev_bh_alias() argument 309 get_bh(struct buffer_head *bh) get_bh() argument 314 put_bh(struct buffer_head *bh) put_bh() argument 320 brelse(struct buffer_head *bh) brelse() argument 326 bforget(struct buffer_head *bh) bforget() argument 376 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) map_bh() argument 384 wait_on_buffer(struct buffer_head *bh) wait_on_buffer() argument 391 trylock_buffer(struct buffer_head *bh) trylock_buffer() argument 396 lock_buffer(struct buffer_head *bh) lock_buffer() argument [all...] |
/kernel/linux/linux-6.6/fs/omfs/ |
H A D | dir.c | 38 struct buffer_head *bh; in omfs_scan_list() local 44 bh = omfs_bread(dir->i_sb, block); in omfs_scan_list() 45 if (!bh) { in omfs_scan_list() 50 oi = (struct omfs_inode *) bh->b_data; in omfs_scan_list() 52 brelse(bh); in omfs_scan_list() 57 return bh; in omfs_scan_list() 61 brelse(bh); in omfs_scan_list() 70 struct buffer_head *bh; in omfs_find_entry() local 74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry() 75 if (!bh) in omfs_find_entry() 87 struct buffer_head *bh; omfs_make_empty() local 117 struct buffer_head *bh; omfs_add_link() local 163 struct buffer_head *bh, *bh2; omfs_delete_entry() local 219 struct buffer_head *bh; omfs_dir_is_empty() local 297 struct buffer_head *bh; omfs_lookup() local 335 struct buffer_head *bh = omfs_bread(dir->i_sb, fsblock); omfs_fill_chain() local 411 struct buffer_head *bh; omfs_readdir() local [all...] |
/kernel/linux/linux-5.10/fs/ext2/ |
H A D | xattr.c | 53 * by the bh lock. No more than a single bh lock is held at any time 69 #define HDR(bh) ((struct ext2_xattr_header *)((bh)->b_data)) 71 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1) 81 # define ea_bdebug(bh, f...) do { \ 83 bh->b_bdev, (unsigned long) bh->b_blocknr); \ 89 # define ea_bdebug(bh, 199 struct buffer_head *bh = NULL; ext2_xattr_get() local 291 struct buffer_head *bh = NULL; ext2_xattr_list() local 411 struct buffer_head *bh = NULL; ext2_xattr_set() local 795 struct buffer_head *bh = NULL; ext2_xattr_delete_inode() local 871 ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh) ext2_xattr_cache_insert() argument 949 struct buffer_head *bh; ext2_xattr_cache_find() local [all...] |
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | prints.c | 148 static int scnprintf_block_head(char *buf, size_t size, struct buffer_head *bh) in scnprintf_block_head() argument 152 B_LEVEL(bh), B_NR_ITEMS(bh), B_FREE_SPACE(bh)); in scnprintf_block_head() 155 static int scnprintf_buffer_head(char *buf, size_t size, struct buffer_head *bh) in scnprintf_buffer_head() argument 159 bh->b_bdev, bh->b_size, in scnprintf_buffer_head() 160 (unsigned long long)bh->b_blocknr, in scnprintf_buffer_head() 161 atomic_read(&(bh->b_count)), in scnprintf_buffer_head() 162 bh in scnprintf_buffer_head() 442 print_internal(struct buffer_head *bh, int first, int last) print_internal() argument 477 print_leaf(struct buffer_head *bh, int print_mode, int first, int last) print_leaf() argument 546 print_super_block(struct buffer_head *bh) print_super_block() argument 596 print_desc_block(struct buffer_head *bh) print_desc_block() argument 611 print_block(struct buffer_head *bh, ...) print_block() argument 731 check_leaf_block_head(struct buffer_head *bh) check_leaf_block_head() argument 747 check_internal_block_head(struct buffer_head *bh) check_internal_block_head() argument 762 check_leaf(struct buffer_head *bh) check_leaf() argument 774 check_internal(struct buffer_head *bh) check_internal() argument [all...] |
/kernel/linux/linux-5.10/fs/affs/ |
H A D | file.c | 52 struct buffer_head *bh; in affs_grow_extcache() local 101 bh = affs_bread(sb, key); in affs_grow_extcache() 102 if (!bh) in affs_grow_extcache() 104 key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_grow_extcache() 105 affs_brelse(bh); in affs_grow_extcache() 119 affs_alloc_extblock(struct inode *inode, struct buffer_head *bh, u32 ext) in affs_alloc_extblock() argument 125 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock() 143 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock() 146 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock() 147 affs_adjust_checksum(bh, blockn in affs_alloc_extblock() 160 struct buffer_head *bh = AFFS_I(inode)->i_ext_bh; affs_get_extblock() local 174 struct buffer_head *bh; affs_get_extblock_slow() local 467 struct buffer_head *bh, tmp_bh; affs_bread_ino() local 486 struct buffer_head *bh, tmp_bh; affs_getzeroblk_ino() local 505 struct buffer_head *bh, tmp_bh; affs_getemptyblk_ino() local 526 struct buffer_head *bh; affs_do_readpage_ofs() local 562 struct buffer_head *bh, *prev_bh; affs_extent_file_ofs() local 694 struct buffer_head *bh, *prev_bh; affs_write_end_ofs() local 944 struct buffer_head *bh = affs_bread_ino(inode, last_blk, 0); affs_truncate() local [all...] |
/kernel/linux/linux-6.6/fs/affs/ |
H A D | file.c | 53 struct buffer_head *bh; in affs_grow_extcache() local 102 bh = affs_bread(sb, key); in affs_grow_extcache() 103 if (!bh) in affs_grow_extcache() 105 key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_grow_extcache() 106 affs_brelse(bh); in affs_grow_extcache() 120 affs_alloc_extblock(struct inode *inode, struct buffer_head *bh, u32 ext) in affs_alloc_extblock() argument 126 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock() 144 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock() 147 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock() 148 affs_adjust_checksum(bh, blockn in affs_alloc_extblock() 161 struct buffer_head *bh = AFFS_I(inode)->i_ext_bh; affs_get_extblock() local 175 struct buffer_head *bh; affs_get_extblock_slow() local 472 struct buffer_head *bh, tmp_bh; affs_bread_ino() local 491 struct buffer_head *bh, tmp_bh; affs_getzeroblk_ino() local 510 struct buffer_head *bh, tmp_bh; affs_getemptyblk_ino() local 530 struct buffer_head *bh; affs_do_read_folio_ofs() local 562 struct buffer_head *bh, *prev_bh; affs_extent_file_ofs() local 695 struct buffer_head *bh, *prev_bh; affs_write_end_ofs() local 948 struct buffer_head *bh = affs_bread_ino(inode, last_blk, 0); affs_truncate() local [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | prints.c | 148 static int scnprintf_block_head(char *buf, size_t size, struct buffer_head *bh) in scnprintf_block_head() argument 152 B_LEVEL(bh), B_NR_ITEMS(bh), B_FREE_SPACE(bh)); in scnprintf_block_head() 155 static int scnprintf_buffer_head(char *buf, size_t size, struct buffer_head *bh) in scnprintf_buffer_head() argument 159 bh->b_bdev, bh->b_size, in scnprintf_buffer_head() 160 (unsigned long long)bh->b_blocknr, in scnprintf_buffer_head() 161 atomic_read(&(bh->b_count)), in scnprintf_buffer_head() 162 bh in scnprintf_buffer_head() 442 print_internal(struct buffer_head *bh, int first, int last) print_internal() argument 477 print_leaf(struct buffer_head *bh, int print_mode, int first, int last) print_leaf() argument 546 print_super_block(struct buffer_head *bh) print_super_block() argument 596 print_desc_block(struct buffer_head *bh) print_desc_block() argument 611 print_block(struct buffer_head *bh, ...) print_block() argument 731 check_leaf_block_head(struct buffer_head *bh) check_leaf_block_head() argument 747 check_internal_block_head(struct buffer_head *bh) check_internal_block_head() argument 762 check_leaf(struct buffer_head *bh) check_leaf() argument 774 check_internal(struct buffer_head *bh) check_internal() argument [all...] |