Home
last modified time | relevance | path

Searched refs:b_state (Results 1 – 25 of 35) sorted by relevance

12

/Linux-v4.19/fs/nilfs2/
Dpage.c30 int blkbits, unsigned long b_state) in __nilfs_get_page_block() argument
37 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
50 unsigned long b_state) in nilfs_grab_buffer() argument
61 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
84 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer()
113 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer()
118 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer()
121 bits &= bh->b_state; in nilfs_copy_buffer()
181 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug()
215 dbh->b_state = sbh->b_state & mask; in nilfs_copy_page()
[all …]
Dbmap.h110 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()
Dbmap.c504 bmap->b_state = 0; in nilfs_bmap_read()
560 bmap->b_state = 0; in nilfs_bmap_init_gc()
570 store->state = bmap->b_state; in nilfs_bmap_save()
579 bmap->b_state = store->state; in nilfs_bmap_restore()
/Linux-v4.19/include/linux/
Dbuffer_head.h64 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); \
164 unsigned long b_state);
359 return likely(!test_and_set_bit_lock(BH_Lock, &bh->b_state)); in trylock_buffer()
Djbd2.h350 bit_spin_lock(BH_State, &bh->b_state); in jbd_lock_bh_state()
355 return bit_spin_trylock(BH_State, &bh->b_state); in jbd_trylock_bh_state()
360 return bit_spin_is_locked(BH_State, &bh->b_state); in jbd_is_locked_bh_state()
365 bit_spin_unlock(BH_State, &bh->b_state); in jbd_unlock_bh_state()
370 bit_spin_lock(BH_JournalHead, &bh->b_state); in jbd_lock_bh_journal_head()
375 bit_spin_unlock(BH_JournalHead, &bh->b_state); in jbd_unlock_bh_journal_head()
/Linux-v4.19/fs/
Dbuffer.c65 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer()
71 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer()
73 wake_up_bit(&bh->b_state, BH_Lock); in unlock_buffer()
118 wait_on_bit_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __wait_on_buffer()
132 if (!test_bit(BH_Quiet, &bh->b_state)) in buffer_io_error()
236 bh->b_state, bh->b_size); in __find_get_block_slow()
277 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
290 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
303 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
333 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_write()
[all …]
Dmpage.c126 page_bh->b_state = bh->b_state; in map_buffer_to_page()
226 map_bh->b_state = 0; in do_mpage_readpage()
580 map_bh.b_state = 0; in __mpage_writepage()
Ddirect-io.c695 map_bh->b_state = 0; in get_more_blocks()
/Linux-v4.19/fs/affs/
Dfile.c451 tmp_bh.b_state = 0; in affs_bread_ino()
456 bh->b_state |= tmp_bh.b_state; in affs_bread_ino()
470 tmp_bh.b_state = 0; in affs_getzeroblk_ino()
475 bh->b_state |= tmp_bh.b_state; in affs_getzeroblk_ino()
489 tmp_bh.b_state = 0; in affs_getemptyblk_ino()
494 bh->b_state |= tmp_bh.b_state; in affs_getemptyblk_ino()
584 bh->b_state &= ~(1UL << BH_New); in affs_extent_file_ofs()
734 bh->b_state &= ~(1UL << BH_New); in affs_write_end_ofs()
768 bh->b_state &= ~(1UL << BH_New); in affs_write_end_ofs()
/Linux-v4.19/fs/xfs/
Dxfs_buf.c84 if (!(bp->b_state & XFS_BSTATE_IN_FLIGHT)) { in xfs_buf_ioacct_inc()
85 bp->b_state |= XFS_BSTATE_IN_FLIGHT; in xfs_buf_ioacct_inc()
101 if (bp->b_state & XFS_BSTATE_IN_FLIGHT) { in __xfs_buf_ioacct_dec()
102 bp->b_state &= ~XFS_BSTATE_IN_FLIGHT; in __xfs_buf_ioacct_dec()
149 if (!(bp->b_state & XFS_BSTATE_DISPOSE) && in xfs_buf_stale()
1032 bp->b_state &= ~XFS_BSTATE_DISPOSE; in xfs_buf_rele()
1043 if (!(bp->b_state & XFS_BSTATE_DISPOSE)) { in xfs_buf_rele()
1615 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_wait_rele()
1693 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_isolate()
Dxfs_buf.h155 unsigned int b_state; /* internal state flags */ member
/Linux-v4.19/fs/gfs2/
Dglops.c39 bh, (unsigned long long)bh->b_blocknr, bh->b_state, in gfs2_ail_error()
62 const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); in __gfs2_ail_flush() local
70 if (bh->b_state & b_state) { in __gfs2_ail_flush()
Dmeta_io.h79 ((bh)->b_state & ((1ul << BH_Dirty) | (1ul << BH_Lock) | (1ul << BH_Pinned)))
Dbmap.c1232 struct buffer_head bh = { .b_state = 0, .b_blocknr = 0 }; in gfs2_extent_map()
2258 bh.b_state = 0; in gfs2_map_journal_extents()
2282 bh.b_state, (unsigned long long)bh.b_size); in gfs2_map_journal_extents()
2324 bh.b_state = 0; in gfs2_write_alloc_required()
Dtrace_gfs2.h461 __entry->state = bh->b_state;
/Linux-v4.19/fs/ext4/
Dpage-io.c99 bit_spin_lock(BH_Uptodate_Lock, &head->b_state); in ext4_finish_bio()
111 bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); in ext4_finish_bio()
Dinode.c756 bh->b_state = (bh->b_state & ~EXT4_MAP_FLAGS) | flags; in ext4_update_bh_state()
765 old_state = READ_ONCE(bh->b_state); in ext4_update_bh_state()
768 cmpxchg(&bh->b_state, old_state, new_state) != old_state)); in ext4_update_bh_state()
2259 map->m_flags = bh->b_state & BH_FLAGS; in mpage_add_bh_to_extent()
2269 (bh->b_state & BH_FLAGS) == map->m_flags) { in mpage_add_bh_to_extent()
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c163 u8 b_state, b_rate; in qlcnic_82xx_store_beacon() local
169 err = qlcnic_validate_beacon(adapter, beacon, &b_state, &b_rate); in qlcnic_82xx_store_beacon()
175 if (ahw->beacon_state == b_state) in qlcnic_82xx_store_beacon()
198 err = qlcnic_config_led(adapter, b_state, b_rate); in qlcnic_82xx_store_beacon()
201 ahw->beacon_state = b_state; in qlcnic_82xx_store_beacon()
/Linux-v4.19/fs/jbd2/
Dcommit.c42 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()
645 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in jbd2_journal_commit_transaction()
/Linux-v4.19/fs/ntfs/
Daops.c110 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
125 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
159 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
/Linux-v4.19/fs/jfs/
Dsuper.c784 tmp_bh.b_state = 0; in jfs_quota_read()
824 tmp_bh.b_state = 0; in jfs_quota_write()
/Linux-v4.19/fs/reiserfs/
Dprints.c162 bh->b_state, bh->b_page, in scnprintf_buffer_head()
Dsuper.c2509 tmp_bh.b_state = 0; in reiserfs_quota_read()
2558 tmp_bh.b_state = 0; in reiserfs_quota_write()
/Linux-v4.19/fs/ext2/
Dsuper.c1511 tmp_bh.b_state = 0; in ext2_quota_read()
1550 tmp_bh.b_state = 0; in ext2_quota_write()
/Linux-v4.19/fs/f2fs/
Ddata.c1239 bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; in __get_data_block()

12