Searched refs:b_state (Results 1 - 36 of 36) sorted by relevance

/linux-4.4.14/fs/nilfs2/
H A Dpage.c44 int blkbits, unsigned long b_state) __nilfs_get_page_block()
51 create_empty_buffers(page, 1 << blkbits, b_state); __nilfs_get_page_block()
64 unsigned long b_state) nilfs_grab_buffer()
75 bh = __nilfs_get_page_block(page, blkoff, index, blkbits, b_state); nilfs_grab_buffer()
98 set_mask_bits(&bh->b_state, clear_bits, 0); nilfs_forget_buffer()
127 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; nilfs_copy_buffer()
132 bits = sbh->b_state & ((1UL << BH_Uptodate) | (1UL << BH_Mapped)); nilfs_copy_buffer()
135 bits &= bh->b_state; nilfs_copy_buffer()
195 (unsigned long long)bh->b_blocknr, bh->b_state); nilfs_page_bug()
229 dbh->b_state = sbh->b_state & mask; nilfs_copy_page()
435 set_mask_bits(&bh->b_state, clear_bits, 0); nilfs_clear_dirty_page()
43 __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index, int blkbits, unsigned long b_state) __nilfs_get_page_block() argument
61 nilfs_grab_buffer(struct inode *inode, struct address_space *mapping, unsigned long blkoff, unsigned long b_state) nilfs_grab_buffer() argument
H A Dbmap.h109 * @b_state: state
123 int b_state; member in struct:nilfs_bmap
257 return !!(bmap->b_state & NILFS_BMAP_DIRTY); nilfs_bmap_dirty()
263 bmap->b_state |= NILFS_BMAP_DIRTY; nilfs_bmap_set_dirty()
269 bmap->b_state &= ~NILFS_BMAP_DIRTY; nilfs_bmap_clear_dirty()
H A Dbmap.c517 bmap->b_state = 0; nilfs_bmap_read()
573 bmap->b_state = 0; nilfs_bmap_init_gc()
583 store->state = bmap->b_state; nilfs_bmap_save()
592 bmap->b_state = store->state; nilfs_bmap_restore()
H A Dsegment.c1857 set_mask_bits(&bh->b_state, clear_bits, set_bits); nilfs_segctor_complete_write()
/linux-4.4.14/include/linux/
H A Dbuffer_head.h63 unsigned long b_state; /* buffer state bitmap (see above) */ member in struct:buffer_head
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); \
114 * do something in addition to setting a b_state bit.
160 unsigned long b_state);
349 return likely(!test_and_set_bit_lock(BH_Lock, &bh->b_state)); trylock_buffer()
H A Djbd2.h355 bit_spin_lock(BH_State, &bh->b_state); jbd_lock_bh_state()
360 return bit_spin_trylock(BH_State, &bh->b_state); jbd_trylock_bh_state()
365 return bit_spin_is_locked(BH_State, &bh->b_state); jbd_is_locked_bh_state()
370 bit_spin_unlock(BH_State, &bh->b_state); jbd_unlock_bh_state()
375 bit_spin_lock(BH_JournalHead, &bh->b_state); jbd_lock_bh_journal_head()
380 bit_spin_unlock(BH_JournalHead, &bh->b_state); jbd_unlock_bh_journal_head()
/linux-4.4.14/fs/gfs2/
H A Dmeta_io.h75 ((bh)->b_state & ((1ul << BH_Dirty) | (1ul << BH_Lock) | (1ul << BH_Pinned)))
H A Dglops.c38 bh, (unsigned long long)bh->b_blocknr, bh->b_state, gfs2_ail_error()
61 const unsigned long b_state = (1UL << BH_Dirty)|(1UL << BH_Pinned)|(1UL << BH_Lock); __gfs2_ail_flush() local
69 if (bh->b_state & b_state) { list_for_each_entry_safe_reverse()
H A Dbmap.c684 struct buffer_head bh = { .b_state = 0, .b_blocknr = 0 }; gfs2_extent_map()
1417 bh.b_state = 0; gfs2_map_journal_extents()
1441 bh.b_state, (unsigned long long)bh.b_size); gfs2_map_journal_extents()
1484 bh.b_state = 0; gfs2_write_alloc_required()
H A Drecovery.c390 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; clean_journal()
H A Dtrace_gfs2.h456 __entry->state = bh->b_state;
H A Dfile.c361 bh.b_state = 0; gfs2_allocate_page_backing()
746 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; fallocate_chunk()
H A Dquota.c375 struct buffer_head bh_map = { .b_state = 0, .b_blocknr = 0 }; bh_get()
/linux-4.4.14/fs/affs/
H A Dfile.c449 tmp_bh.b_state = 0; affs_bread_ino()
454 bh->b_state |= tmp_bh.b_state; affs_bread_ino()
468 tmp_bh.b_state = 0; affs_getzeroblk_ino()
473 bh->b_state |= tmp_bh.b_state; affs_getzeroblk_ino()
487 tmp_bh.b_state = 0; affs_getemptyblk_ino()
492 bh->b_state |= tmp_bh.b_state; affs_getemptyblk_ino()
583 bh->b_state &= ~(1UL << BH_New); affs_extent_file_ofs()
733 bh->b_state &= ~(1UL << BH_New); affs_write_end_ofs()
767 bh->b_state &= ~(1UL << BH_New); affs_write_end_ofs()
/linux-4.4.14/fs/
H A Dmpage.c120 page_bh->b_state = bh->b_state; map_buffer_to_page()
200 map_bh->b_state = 0; do_mpage_readpage()
366 map_bh.b_state = 0; mpage_readpages()
402 map_bh.b_state = 0; mpage_readpage()
549 map_bh.b_state = 0; __mpage_writepage()
H A Dbuffer.c70 wait_on_bit_lock_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); __lock_buffer()
76 clear_bit_unlock(BH_Lock, &bh->b_state); unlock_buffer()
78 wake_up_bit(&bh->b_state, BH_Lock); unlock_buffer()
123 wait_on_bit_io(&bh->b_state, BH_Lock, TASK_UNINTERRUPTIBLE); __wait_on_buffer()
139 if (!test_bit(BH_Quiet, &bh->b_state)) buffer_io_error()
246 printk("b_state=0x%08lx, b_size=%zu\n", __find_get_block_slow()
247 bh->b_state, bh->b_size); __find_get_block_slow()
309 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_read()
322 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_read()
335 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_read()
366 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_write()
378 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_write()
384 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); end_buffer_async_write()
1501 unsigned long b_state, b_state_old; discard_buffer() local
1506 b_state = bh->b_state; discard_buffer()
1508 b_state_old = cmpxchg(&bh->b_state, b_state, discard_buffer()
1509 (b_state & ~BUFFER_FLAGS_DISCARD)); discard_buffer()
1510 if (b_state_old == b_state) discard_buffer()
1512 b_state = b_state_old; discard_buffer()
1589 unsigned long blocksize, unsigned long b_state) create_empty_buffers()
1596 bh->b_state |= b_state; create_empty_buffers()
1663 static struct buffer_head *create_page_buffers(struct page *page, struct inode *inode, unsigned int b_state) create_page_buffers() argument
1668 create_empty_buffers(page, 1 << ACCESS_ONCE(inode->i_blkbits), b_state); create_page_buffers()
2570 bh->b_state = 0; nobh_write_begin()
2774 map_bh.b_state = 0; nobh_truncate_page()
2932 tmp.b_state = 0; generic_block_bmap()
2945 set_bit(BH_Quiet, &bh->b_state); end_bio_bh_io_sync()
3182 (bh->b_state & ((1 << BH_Dirty) | (1 << BH_Lock))); buffer_busy()
1588 create_empty_buffers(struct page *page, unsigned long blocksize, unsigned long b_state) create_empty_buffers() argument
H A Ddax.c98 * which means that we can't trust b_size. To cope with this, we set b_state
105 return bh->b_state != 0; buffer_size_valid()
134 bh->b_state = 0; dax_io()
H A Ddirect-io.c620 map_bh->b_state = 0; get_more_blocks()
/linux-4.4.14/fs/ocfs2/
H A Dbuffer_head_io.c42 * Bits on bh->b_state used by ocfs2.
50 /* Expand the magic b_state functions */
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sysfs.c163 u8 b_state, b_rate; qlcnic_82xx_store_beacon() local
169 err = qlcnic_validate_beacon(adapter, beacon, &b_state, &b_rate); qlcnic_82xx_store_beacon()
175 if (ahw->beacon_state == b_state) qlcnic_82xx_store_beacon()
198 err = qlcnic_config_led(adapter, b_state, b_rate); qlcnic_82xx_store_beacon()
201 ahw->beacon_state = b_state; qlcnic_82xx_store_beacon()
/linux-4.4.14/fs/ext4/
H A Dpage-io.c100 bit_spin_lock(BH_Uptodate_Lock, &head->b_state); bio_for_each_segment_all()
112 bit_spin_unlock(BH_Uptodate_Lock, &head->b_state); bio_for_each_segment_all()
H A Dinode.c661 * Update EXT4_MAP_FLAGS in bh->b_state. For buffer heads attached to pages
662 * we have to be careful as someone else may be manipulating b_state as well.
673 bh->b_state = (bh->b_state & ~EXT4_MAP_FLAGS) | flags; ext4_update_bh_state()
677 * Someone else may be modifying b_state. Be careful! This is ugly but ext4_update_bh_state()
682 old_state = READ_ONCE(bh->b_state); ext4_update_bh_state()
685 cmpxchg(&bh->b_state, old_state, new_state) != old_state)); ext4_update_bh_state()
1989 map->m_flags = bh->b_state & BH_FLAGS; mpage_add_bh_to_extent()
1999 (bh->b_state & BH_FLAGS) == map->m_flags) { mpage_add_bh_to_extent()
H A Dext4.h3222 test_bit(BH_BITMAP_UPTODATE, &(bh)->b_state)); bitmap_uptodate()
3226 set_bit(BH_BITMAP_UPTODATE, &(bh)->b_state); set_bitmap_uptodate()
/linux-4.4.14/fs/xfs/
H A Dxfs_buf.c107 if (!(bp->b_state & XFS_BSTATE_DISPOSE) && xfs_buf_stale()
900 bp->b_state &= ~XFS_BSTATE_DISPOSE; xfs_buf_rele()
912 if (!(bp->b_state & XFS_BSTATE_DISPOSE)) { xfs_buf_rele()
1517 bp->b_state |= XFS_BSTATE_DISPOSE; xfs_buftarg_wait_rele()
1589 bp->b_state |= XFS_BSTATE_DISPOSE; xfs_buftarg_isolate()
H A Dxfs_buf.h162 unsigned int b_state; /* internal state flags */ member in struct:xfs_buf
/linux-4.4.14/fs/jfs/
H A Dsuper.c760 tmp_bh.b_state = 0; jfs_quota_read()
800 tmp_bh.b_state = 0; jfs_quota_write()
/linux-4.4.14/fs/jbd2/
H A Dcommit.c45 clear_bit_unlock(BH_Shadow, &orig_bh->b_state); journal_end_buffer_io_sync()
47 wake_up_bit(&orig_bh->b_state, BH_Shadow); journal_end_buffer_io_sync()
674 set_bit(BH_JWrite, &jh2bh(jh)->b_state); jbd2_journal_commit_transaction()
H A Djournal.c2414 * Whenever a buffer has an attached journal_head, its ->b_state:BH_JBD bit
H A Dtransaction.c950 wait_on_bit_io(&bh->b_state, BH_Shadow, TASK_UNINTERRUPTIBLE); do_get_write_access()
/linux-4.4.14/fs/ntfs/
H A Daops.c111 bit_spin_lock(BH_Uptodate_Lock, &first->b_state); ntfs_end_buffer_async_read()
126 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); ntfs_end_buffer_async_read()
162 bit_spin_unlock(BH_Uptodate_Lock, &first->b_state); ntfs_end_buffer_async_read()
/linux-4.4.14/fs/reiserfs/
H A Dprints.c148 bh->b_state, bh->b_page, sprintf_buffer_head()
H A Dsuper.c2422 tmp_bh.b_state = 0; reiserfs_quota_read()
2471 tmp_bh.b_state = 0; reiserfs_quota_write()
/linux-4.4.14/fs/f2fs/
H A Ddata.c723 bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; __get_data_block()
/linux-4.4.14/fs/ext2/
H A Dsuper.c1470 tmp_bh.b_state = 0; ext2_quota_read()
1509 tmp_bh.b_state = 0; ext2_quota_write()
/linux-4.4.14/fs/isofs/
H A Dinode.c1101 dummy.b_state = 0; isofs_bmap()
/linux-4.4.14/fs/udf/
H A Dinode.c464 dummy.b_state = 0; udf_getblk()

Completed in 867 milliseconds