/kernel/linux/linux-6.6/include/linux/ |
H A D | buffer_head.h | 60 unsigned long b_state; /* buffer state bitmap (see above) */ member 92 if (!test_bit(BH_##bit, &(bh)->b_state)) \ 93 set_bit(BH_##bit, &(bh)->b_state); \ 97 clear_bit(BH_##bit, &(bh)->b_state); \ 101 return test_bit(BH_##bit, &(bh)->b_state); \ 110 return test_and_set_bit(BH_##bit, &(bh)->b_state); \ 114 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \ 120 * do something in addition to setting a b_state bit. 149 if (test_bit(BH_Uptodate, &bh->b_state)) in set_buffer_uptodate() 157 set_bit(BH_Uptodate, &bh->b_state); in set_buffer_uptodate() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | buffer_head.h | 61 unsigned long b_state; /* buffer state bitmap (see above) */ member 90 if (!test_bit(BH_##bit, &(bh)->b_state)) \ 91 set_bit(BH_##bit, &(bh)->b_state); \ 95 clear_bit(BH_##bit, &(bh)->b_state); \ 99 return test_bit(BH_##bit, &(bh)->b_state); \ 108 return test_and_set_bit(BH_##bit, &(bh)->b_state); \ 112 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \ 118 * do something in addition to setting a b_state bit. 147 if (test_bit(BH_Uptodate, &bh->b_state)) in set_buffer_uptodate() 155 set_bit(BH_Uptodate, &bh->b_state); in set_buffer_uptodate() [all...] |
/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | page.c | 30 int blkbits, unsigned long b_state) in __nilfs_get_page_block() 37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block() 50 unsigned long b_state) in nilfs_grab_buffer() 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 83 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer() 112 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer() 117 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer() 120 bits &= bh->b_state; in nilfs_copy_buffer() 180 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug() 29 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, int blkbits, unsigned long b_state) __nilfs_get_page_block() argument 47 nilfs_grab_buffer(struct inode *inode, struct address_space *mapping, unsigned long blkoff, unsigned long b_state) nilfs_grab_buffer() argument [all...] |
H A D | bmap.h | 96 * @b_state: state 110 int b_state; member 248 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty() 254 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty() 260 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()
|
H A D | bmap.c | 512 bmap->b_state = 0; in nilfs_bmap_read() 568 bmap->b_state = 0; in nilfs_bmap_init_gc() 578 store->state = bmap->b_state; in nilfs_bmap_save() 587 bmap->b_state = store->state; in nilfs_bmap_restore()
|
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | page.c | 30 int blkbits, unsigned long b_state) in __nilfs_get_page_block() 37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block() 50 unsigned long b_state) in nilfs_grab_buffer() 61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer() 83 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer() 112 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer() 117 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer() 120 bits &= bh->b_state; in nilfs_copy_buffer() 180 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug() 29 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, int blkbits, unsigned long b_state) __nilfs_get_page_block() argument 47 nilfs_grab_buffer(struct inode *inode, struct address_space *mapping, unsigned long blkoff, unsigned long b_state) nilfs_grab_buffer() argument [all...] |
H A D | bmap.h | 96 * @b_state: state 110 int b_state; member 248 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty() 254 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty() 260 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()
|
H A D | bmap.c | 512 bmap->b_state = 0; in nilfs_bmap_read() 568 bmap->b_state = 0; in nilfs_bmap_init_gc() 578 store->state = bmap->b_state; in nilfs_bmap_save() 587 bmap->b_state = store->state; in nilfs_bmap_restore()
|
/kernel/linux/linux-6.6/fs/ |
H A D | buffer.c | 71 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer() 77 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer() 79 wake_up_bit(&bh->b_state, BH_Lock); in unlock_buffer() 123 wait_on_bit_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __wait_on_buffer() 129 if (!test_bit(BH_Quiet, &bh->b_state)) in buffer_io_error() 231 "b_blocknr=%llu, b_state=0x%08lx, b_size=%zu, " in __find_get_block_slow() 235 bh->b_state, bh->b_size, bdev, in __find_get_block_slow() 1562 unsigned long b_state; in discard_buffer() local 1567 b_state = READ_ONCE(bh->b_state); in discard_buffer() 1643 folio_create_empty_buffers(struct folio *folio, unsigned long blocksize, unsigned long b_state) folio_create_empty_buffers() argument 1673 create_empty_buffers(struct page *page, unsigned long blocksize, unsigned long b_state) create_empty_buffers() argument 1676 folio_create_empty_buffers(page_folio(page), blocksize, b_state); create_empty_buffers() local 1767 folio_create_buffers(struct folio *folio, struct inode *inode, unsigned int b_state) folio_create_buffers() argument [all...] |
H A D | mpage.c | 129 page_bh->b_state = bh->b_state; in map_buffer_to_folio() 229 map_bh->b_state = 0; in do_mpage_readpage() 557 map_bh.b_state = 0; in __mpage_writepage()
|
/kernel/linux/linux-5.10/fs/affs/ |
H A D | file.c | 470 tmp_bh.b_state = 0; in affs_bread_ino() 475 bh->b_state |= tmp_bh.b_state; in affs_bread_ino() 489 tmp_bh.b_state = 0; in affs_getzeroblk_ino() 494 bh->b_state |= tmp_bh.b_state; in affs_getzeroblk_ino() 508 tmp_bh.b_state = 0; in affs_getemptyblk_ino() 513 bh->b_state |= tmp_bh.b_state; in affs_getemptyblk_ino() 603 bh->b_state in affs_extent_file_ofs() [all...] |
/kernel/linux/linux-6.6/fs/affs/ |
H A D | file.c | 475 tmp_bh.b_state = 0; in affs_bread_ino() 480 bh->b_state |= tmp_bh.b_state; in affs_bread_ino() 494 tmp_bh.b_state = 0; in affs_getzeroblk_ino() 499 bh->b_state |= tmp_bh.b_state; in affs_getzeroblk_ino() 513 tmp_bh.b_state = 0; in affs_getemptyblk_ino() 518 bh->b_state |= tmp_bh.b_state; in affs_getemptyblk_ino() 603 bh->b_state in affs_extent_file_ofs() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | buffer.c | 69 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer() 75 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer() 77 wake_up_bit(&bh->b_state, BH_Lock); in unlock_buffer() 122 wait_on_bit_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __wait_on_buffer() 128 if (!test_bit(BH_Quiet, &bh->b_state)) in buffer_io_error() 230 "b_blocknr=%llu, b_state=0x%08lx, b_size=%zu, " in __find_get_block_slow() 234 bh->b_state, bh->b_size, bdev, in __find_get_block_slow() 1469 unsigned long b_state, b_state_old; in discard_buffer() local 1474 b_state = bh->b_state; in discard_buffer() 1556 create_empty_buffers(struct page *page, unsigned long blocksize, unsigned long b_state) create_empty_buffers() argument 1673 create_page_buffers(struct page *page, struct inode *inode, unsigned int b_state) create_page_buffers() argument [all...] |
H A D | mpage.c | 126 page_bh->b_state = bh->b_state; in map_buffer_to_page() 226 map_bh->b_state = 0; in do_mpage_readpage() 564 map_bh.b_state = 0; in __mpage_writepage()
|
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | glops.c | 39 bh, (unsigned long long)bh->b_blocknr, bh->b_state, in gfs2_ail_error() 63 const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); in __gfs2_ail_flush() local 71 if (bh->b_state & b_state) { in __gfs2_ail_flush()
|
H A D | meta_io.h | 76 ((bh)->b_state & ((1ul << BH_Dirty) | (1ul << BH_Lock) | (1ul << BH_Pinned)))
|
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | glops.c | 41 bh, (unsigned long long)bh->b_blocknr, bh->b_state, in gfs2_ail_error() 66 const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); in __gfs2_ail_flush() local 74 if (bh->b_state & b_state) { in __gfs2_ail_flush()
|
H A D | meta_io.h | 78 ((bh)->b_state & ((1ul << BH_Dirty) | (1ul << BH_Lock) | (1ul << BH_Pinned)))
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_buf.c | 107 if (!(bp->b_state & XFS_BSTATE_IN_FLIGHT)) { in xfs_buf_ioacct_inc() 108 bp->b_state |= XFS_BSTATE_IN_FLIGHT; in xfs_buf_ioacct_inc() 124 if (bp->b_state & XFS_BSTATE_IN_FLIGHT) { in __xfs_buf_ioacct_dec() 125 bp->b_state &= ~XFS_BSTATE_IN_FLIGHT; in __xfs_buf_ioacct_dec() 172 if (!(bp->b_state & XFS_BSTATE_DISPOSE) && in xfs_buf_stale() 1072 bp->b_state &= ~XFS_BSTATE_DISPOSE; in xfs_buf_rele() 1083 if (!(bp->b_state & XFS_BSTATE_DISPOSE)) { in xfs_buf_rele() 1812 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_wait_rele() 1903 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_isolate()
|
H A D | xfs_buf.h | 149 unsigned int b_state; /* internal state flags */ member
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_buf.c | 106 if (!(bp->b_state & XFS_BSTATE_IN_FLIGHT)) { in xfs_buf_ioacct_inc() 107 bp->b_state |= XFS_BSTATE_IN_FLIGHT; in xfs_buf_ioacct_inc() 123 if (bp->b_state & XFS_BSTATE_IN_FLIGHT) { in __xfs_buf_ioacct_dec() 124 bp->b_state &= ~XFS_BSTATE_IN_FLIGHT; in __xfs_buf_ioacct_dec() 171 if (!(bp->b_state & XFS_BSTATE_DISPOSE) && in xfs_buf_stale() 1051 bp->b_state &= ~XFS_BSTATE_DISPOSE; in xfs_buf_rele() 1062 if (!(bp->b_state & XFS_BSTATE_DISPOSE)) { in xfs_buf_rele() 1804 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_drain_rele() 1905 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_isolate()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 162 u8 b_state, b_rate; in qlcnic_82xx_store_beacon() local 168 err = qlcnic_validate_beacon(adapter, beacon, &b_state, &b_rate); in qlcnic_82xx_store_beacon() 174 if (ahw->beacon_state == b_state) in qlcnic_82xx_store_beacon() 197 err = qlcnic_config_led(adapter, b_state, b_rate); in qlcnic_82xx_store_beacon() 200 ahw->beacon_state = b_state; in qlcnic_82xx_store_beacon()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 161 u8 b_state, b_rate; in qlcnic_82xx_store_beacon() local 167 err = qlcnic_validate_beacon(adapter, beacon, &b_state, &b_rate); in qlcnic_82xx_store_beacon() 173 if (ahw->beacon_state == b_state) in qlcnic_82xx_store_beacon() 196 err = qlcnic_config_led(adapter, b_state, b_rate); in qlcnic_82xx_store_beacon() 199 ahw->beacon_state = b_state; in qlcnic_82xx_store_beacon()
|
/kernel/linux/linux-5.10/fs/jbd2/ |
H A D | commit.c | 42 clear_bit_unlock(BH_Shadow, &orig_bh->b_state); in journal_end_buffer_io_sync() 44 wake_up_bit(&orig_bh->b_state, BH_Shadow); in journal_end_buffer_io_sync() 710 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in jbd2_journal_commit_transaction()
|
/kernel/linux/linux-6.6/fs/jbd2/ |
H A D | commit.c | 42 clear_bit_unlock(BH_Shadow, &orig_bh->b_state); in journal_end_buffer_io_sync() 44 wake_up_bit(&orig_bh->b_state, BH_Shadow); in journal_end_buffer_io_sync() 662 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in jbd2_journal_commit_transaction()
|