Home
last modified time | relevance | path

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

/linux-4.4.14/fs/nilfs2/
Dpage.c44 int blkbits, unsigned long b_state) in __nilfs_get_page_block() argument
51 create_empty_buffers(page, 1 << blkbits, b_state); in __nilfs_get_page_block()
64 unsigned long b_state) in nilfs_grab_buffer() argument
75 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); in nilfs_grab_buffer()
98 set_mask_bits(&bh->b_state, clear_bits, 0); in nilfs_forget_buffer()
127 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer()
132 bits = sbh->b_state & ((1UL << BH_Uptodate) | (1UL << BH_Mapped)); in nilfs_copy_buffer()
135 bits &= bh->b_state; in nilfs_copy_buffer()
195 (unsigned long long)bh->b_blocknr, bh->b_state); in nilfs_page_bug()
229 dbh->b_state = sbh->b_state & mask; in nilfs_copy_page()
[all …]
Dbmap.h123 int b_state; member
257 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty()
263 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty()
269 bmap->b_state &= ~NILFS_BMAP_DIRTY; in nilfs_bmap_clear_dirty()
Dbmap.c517 bmap->b_state = 0; in nilfs_bmap_read()
573 bmap->b_state = 0; in nilfs_bmap_init_gc()
583 store->state = bmap->b_state; in nilfs_bmap_save()
592 bmap->b_state = store->state; in nilfs_bmap_restore()
Dsegment.c1857 set_mask_bits(&bh->b_state, clear_bits, set_bits); in nilfs_segctor_complete_write()
/linux-4.4.14/include/linux/
Dbuffer_head.h63 unsigned long b_state; /* buffer state bitmap (see above) */ member
87 set_bit(BH_##bit, &(bh)->b_state); \
91 clear_bit(BH_##bit, &(bh)->b_state); \
95 return test_bit(BH_##bit, &(bh)->b_state); \
104 return test_and_set_bit(BH_##bit, &(bh)->b_state); \
108 return test_and_clear_bit(BH_##bit, &(bh)->b_state); \
160 unsigned long b_state);
349 return likely(!test_and_set_bit_lock(BH_Lock, &bh->b_state)); in trylock_buffer()
Djbd2.h355 bit_spin_lock(BH_State, &bh->b_state); in jbd_lock_bh_state()
360 return bit_spin_trylock(BH_State, &bh->b_state); in jbd_trylock_bh_state()
365 return bit_spin_is_locked(BH_State, &bh->b_state); in jbd_is_locked_bh_state()
370 bit_spin_unlock(BH_State, &bh->b_state); in jbd_unlock_bh_state()
375 bit_spin_lock(BH_JournalHead, &bh->b_state); in jbd_lock_bh_journal_head()
380 bit_spin_unlock(BH_JournalHead, &bh->b_state); in jbd_unlock_bh_journal_head()
/linux-4.4.14/fs/
Dbuffer.c70 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); in __lock_buffer()
76 clear_bit_unlock(BH_Lock, &bh->b_state); in unlock_buffer()
78 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()
139 if (!test_bit(BH_Quiet, &bh->b_state)) in buffer_io_error()
247 bh->b_state, bh->b_size); in __find_get_block_slow()
309 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
322 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
335 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_read()
366 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in end_buffer_async_write()
[all …]
Dmpage.c120 page_bh->b_state = bh->b_state; in map_buffer_to_page()
200 map_bh->b_state = 0; in do_mpage_readpage()
366 map_bh.b_state = 0; in mpage_readpages()
402 map_bh.b_state = 0; in mpage_readpage()
549 map_bh.b_state = 0; in __mpage_writepage()
Ddax.c105 return bh->b_state != 0; in buffer_size_valid()
134 bh->b_state = 0; in dax_io()
Ddirect-io.c620 map_bh->b_state = 0; in get_more_blocks()
/linux-4.4.14/fs/affs/
Dfile.c449 tmp_bh.b_state = 0; in affs_bread_ino()
454 bh->b_state |= tmp_bh.b_state; in affs_bread_ino()
468 tmp_bh.b_state = 0; in affs_getzeroblk_ino()
473 bh->b_state |= tmp_bh.b_state; in affs_getzeroblk_ino()
487 tmp_bh.b_state = 0; in affs_getemptyblk_ino()
492 bh->b_state |= tmp_bh.b_state; in affs_getemptyblk_ino()
583 bh->b_state &= ~(1UL << BH_New); in affs_extent_file_ofs()
733 bh->b_state &= ~(1UL << BH_New); in affs_write_end_ofs()
767 bh->b_state &= ~(1UL << BH_New); in affs_write_end_ofs()
/linux-4.4.14/fs/gfs2/
Dglops.c38 bh, (unsigned long long)bh->b_blocknr, bh->b_state, in gfs2_ail_error()
61 const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); in __gfs2_ail_flush() local
69 if (bh->b_state & b_state) { in __gfs2_ail_flush()
Dmeta_io.h75 ((bh)->b_state & ((1ul << BH_Dirty) | (1ul << BH_Lock) | (1ul << BH_Pinned)))
Dbmap.c684 struct buffer_head bh = { .b_state = 0, .b_blocknr = 0 }; in gfs2_extent_map()
1417 bh.b_state = 0; in gfs2_map_journal_extents()
1441 bh.b_state, (unsigned long long)bh.b_size); in gfs2_map_journal_extents()
1484 bh.b_state = 0; in gfs2_write_alloc_required()
Dfile.c361 bh.b_state = 0; in gfs2_allocate_page_backing()
746 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in fallocate_chunk()
Drecovery.c390 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in clean_journal()
Dtrace_gfs2.h456 __entry->state = bh->b_state;
Dquota.c375 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; in bh_get()
/linux-4.4.14/fs/ext4/
Dpage-io.c100 bit_spin_lock(BH_Uptodate_Lock, &head->b_state); in ext4_finish_bio()
112 bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); in ext4_finish_bio()
Dinode.c673 bh->b_state = (bh->b_state & ~EXT4_MAP_FLAGS) | flags; in ext4_update_bh_state()
682 old_state = READ_ONCE(bh->b_state); in ext4_update_bh_state()
685 cmpxchg(&bh->b_state, old_state, new_state) != old_state)); in ext4_update_bh_state()
1989 map->m_flags = bh->b_state & BH_FLAGS; in mpage_add_bh_to_extent()
1999 (bh->b_state & BH_FLAGS) == map->m_flags) { in mpage_add_bh_to_extent()
Dext4.h3222 test_bit(BH_BITMAP_UPTODATE, &(bh)->b_state)); in bitmap_uptodate()
3226 set_bit(BH_BITMAP_UPTODATE, &(bh)->b_state); in set_bitmap_uptodate()
/linux-4.4.14/fs/xfs/
Dxfs_buf.c107 if (!(bp->b_state & XFS_BSTATE_DISPOSE) && in xfs_buf_stale()
900 bp->b_state &= ~XFS_BSTATE_DISPOSE; in xfs_buf_rele()
912 if (!(bp->b_state & XFS_BSTATE_DISPOSE)) { in xfs_buf_rele()
1517 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_wait_rele()
1589 bp->b_state |= XFS_BSTATE_DISPOSE; in xfs_buftarg_isolate()
Dxfs_buf.h162 unsigned int b_state; /* internal state flags */ member
/linux-4.4.14/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-4.4.14/fs/jbd2/
Dcommit.c45 clear_bit_unlock(BH_Shadow, &orig_bh->b_state); in journal_end_buffer_io_sync()
47 wake_up_bit(&orig_bh->b_state, BH_Shadow); in journal_end_buffer_io_sync()
674 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in jbd2_journal_commit_transaction()
Dtransaction.c950 wait_on_bit_io(&bh->b_state, BH_Shadow, TASK_UNINTERRUPTIBLE); in do_get_write_access()
/linux-4.4.14/fs/ntfs/
Daops.c111 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
126 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
162 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); in ntfs_end_buffer_async_read()
/linux-4.4.14/fs/jfs/
Dsuper.c760 tmp_bh.b_state = 0; in jfs_quota_read()
800 tmp_bh.b_state = 0; in jfs_quota_write()
/linux-4.4.14/fs/reiserfs/
Dprints.c148 bh->b_state, bh->b_page, in sprintf_buffer_head()
Dsuper.c2422 tmp_bh.b_state = 0; in reiserfs_quota_read()
2471 tmp_bh.b_state = 0; in reiserfs_quota_write()
/linux-4.4.14/fs/ext2/
Dsuper.c1470 tmp_bh.b_state = 0; in ext2_quota_read()
1509 tmp_bh.b_state = 0; in ext2_quota_write()
/linux-4.4.14/fs/f2fs/
Ddata.c723 bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; in __get_data_block()
/linux-4.4.14/fs/isofs/
Dinode.c1101 dummy.b_state = 0; in isofs_bmap()
/linux-4.4.14/fs/udf/
Dinode.c464 dummy.b_state = 0; in udf_getblk()
/linux-4.4.14/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3665 b_dev = 15872, b_count = {counter = 1}, b_rdev = 15872, b_state = 24,