Home
last modified time | relevance | path

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

12

/linux-2.4.37.9/fs/jbd/
Drevoke.c311 test_bit(BH_RevokeValid, &bh2->b_state)) in journal_revoke()
319 bh2->b_state)); in journal_revoke()
329 J_ASSERT_BH(bh, !test_bit(BH_Revoked, &bh->b_state)); in journal_revoke()
330 set_bit(BH_Revoked, &bh->b_state); in journal_revoke()
331 set_bit(BH_RevokeValid, &bh->b_state); in journal_revoke()
381 if (test_and_set_bit(BH_RevokeValid, &bh->b_state)) in journal_cancel_revoke()
382 need_cancel = (test_and_clear_bit(BH_Revoked, &bh->b_state)); in journal_cancel_revoke()
385 clear_bit(BH_Revoked, &bh->b_state); in journal_cancel_revoke()
413 clear_bit(BH_Revoked, &bh2->b_state); in journal_cancel_revoke()
540 set_bit(BH_JWrite, &jh2bh(descriptor)->b_state); in flush_descriptor()
[all …]
Dcommit.c322 clear_bit(BH_Freed, &bh->b_state); in journal_commit_transaction()
323 clear_bit(BH_Dirty, &bh->b_state); in journal_commit_transaction()
422 set_bit(BH_JWrite, &bh->b_state); in journal_commit_transaction()
452 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in journal_commit_transaction()
462 set_bit(BH_JWrite, &jh2bh(new_jh)->b_state); in journal_commit_transaction()
463 set_bit(BH_Lock, &jh2bh(new_jh)->b_state); in journal_commit_transaction()
507 clear_bit(BH_Dirty, &bh->b_state); in journal_commit_transaction()
548 clear_bit(BH_JWrite, &jh2bh(jh)->b_state); in journal_commit_transaction()
575 clear_bit(BH_JWrite, &bh->b_state); in journal_commit_transaction()
610 clear_bit(BH_JWrite, &bh->b_state); in journal_commit_transaction()
[all …]
Dtransaction.c583 locked = test_and_set_bit(BH_Lock, &bh->b_state); in do_get_write_access()
1142 set_bit(BH_JBDDirty, &bh->b_state); in journal_dirty_metadata()
1253 clear_bit(BH_Dirty, &bh->b_state); in journal_forget()
1254 clear_bit(BH_JBDDirty, &bh->b_state); in journal_forget()
1625 if (test_and_clear_bit(BH_JBDDirty, &jh2bh(jh)->b_state)) { in __journal_unfile_buffer()
1626 set_bit(BH_Dirty, &jh2bh(jh)->b_state); in __journal_unfile_buffer()
1709 bh->b_state); in debug_page()
1819 clear_bit(BH_JBDDirty, &bh->b_state); in dispose_buffer()
1936 clear_bit(BH_JBDDirty, &bh->b_state); in journal_unmap_buffer()
1946 set_bit(BH_Freed, &bh->b_state); in journal_unmap_buffer()
[all …]
Dcheckpoint.c191 clear_bit(BH_JWrite, &bh->b_state); in __flush_batch()
225 J_ASSERT_BH(bh, !test_bit(BH_JWrite, &bh->b_state)); in __flush_buffer()
226 set_bit(BH_JWrite, &bh->b_state); in __flush_buffer()
/linux-2.4.37.9/fs/
Dbuffer.c165 clear_bit(BH_Wait_IO, &bh->b_state); in unlock_buffer()
166 clear_bit(BH_Launder, &bh->b_state); in unlock_buffer()
174 clear_bit(BH_Lock, &bh->b_state); in unlock_buffer()
264 if (test_and_set_bit(BH_Lock, &bh->b_state)) in write_some_buffers()
1196 set_bit(BH_Sync, &bh->b_state); in bread()
1322 bh->b_state = 0; in create_buffers()
1380 clear_bit(BH_Uptodate, &bh->b_state); in discard_buffer()
1381 clear_bit(BH_Mapped, &bh->b_state); in discard_buffer()
1382 clear_bit(BH_Req, &bh->b_state); in discard_buffer()
1383 clear_bit(BH_New, &bh->b_state); in discard_buffer()
[all …]
/linux-2.4.37.9/fs/bfs/
Dfile.c74 bh_result->b_state |= (1UL << BH_Mapped); in bfs_get_block()
86 bh_result->b_state |= (1UL << BH_Mapped); in bfs_get_block()
100 bh_result->b_state |= (1UL << BH_Mapped); in bfs_get_block()
133 bh_result->b_state |= (1UL << BH_Mapped); in bfs_get_block()
/linux-2.4.37.9/fs/affs/
Dfile.c362 bh_result->b_state |= (1UL << BH_Mapped); in affs_get_block()
368 bh_result->b_state |= (1UL << BH_New); in affs_get_block()
407 bh_result->b_state &= ~(1UL << BH_Mapped); in affs_get_block()
445 tmp_bh.b_state = 0; in affs_bread_ino()
450 bh->b_state |= tmp_bh.b_state; in affs_bread_ino()
464 tmp_bh.b_state = 0; in affs_getzeroblk_ino()
469 bh->b_state |= tmp_bh.b_state; in affs_getzeroblk_ino()
483 tmp_bh.b_state = 0; in affs_getemptyblk_ino()
488 bh->b_state |= tmp_bh.b_state; in affs_getemptyblk_ino()
592 bh->b_state &= ~(1UL << BH_New); in affs_extent_file_ofs()
[all …]
/linux-2.4.37.9/include/linux/
Dlocks.h19 if (test_bit(BH_Lock, &bh->b_state)) in wait_on_buffer()
25 while (test_and_set_bit(BH_Lock, &bh->b_state)) in lock_buffer()
Dfs.h256 unsigned long b_state; /* buffer state bitmap (see above) */ member
279 #define __buffer_state(bh, state) (((bh)->b_state & (1UL << BH_##state)) != 0)
1174 set_bit(BH_Uptodate, &bh->b_state); in mark_buffer_uptodate()
1176 clear_bit(BH_Uptodate, &bh->b_state); in mark_buffer_uptodate()
1179 #define atomic_set_buffer_clean(bh) test_and_clear_bit(BH_Dirty, &(bh)->b_state)
1210 return test_and_set_bit(BH_Dirty, &bh->b_state); in atomic_set_buffer_dirty()
1216 set_bit(BH_Async, &bh->b_state); in mark_buffer_async()
1218 clear_bit(BH_Async, &bh->b_state); in mark_buffer_async()
1223 set_bit(BH_Attached, &bh->b_state); in set_buffer_attached()
1228 clear_bit(BH_Attached, &bh->b_state); in clear_buffer_attached()
[all …]
/linux-2.4.37.9/fs/fat/
Dfile.c60 bh_result->b_state |= (1UL << BH_Mapped); in fat_get_block()
79 bh_result->b_state |= (1UL << BH_Mapped); in fat_get_block()
80 bh_result->b_state |= (1UL << BH_New); in fat_get_block()
/linux-2.4.37.9/fs/reiserfs/
Dtail_conversion.c148 clear_bit(BH_Mapped, &bh->b_state) ; in reiserfs_unmap_buffer()
149 clear_bit(BH_Req, &bh->b_state) ; in reiserfs_unmap_buffer()
150 clear_bit(BH_New, &bh->b_state) ; in reiserfs_unmap_buffer()
Djournal.c112 clear_bit(BH_Dirty, &bh->b_state) ; in reiserfs_clean_and_file_buffer()
374 clear_bit(BH_JPrepared, &bh->b_state) ; in clear_prepared_bits()
381 return test_bit(BH_JDirty, &((struct buffer_head *)bh)->b_state) ; in buffer_journaled()
391 return test_bit(BH_JNew, &((struct buffer_head *)bh)->b_state) ; in buffer_journal_new()
398 set_bit(BH_JNew, &bh->b_state) ; in mark_buffer_journal_new()
405 clear_bit(BH_JDirty, &bh->b_state) ; in mark_buffer_not_journaled()
836 set_bit(BH_Dirty, &(SB_JOURNAL(p_s_sb)->j_header_bh->b_state)) ; in _update_journal_header_block()
891 clear_bit(BH_Dirty, &bh->b_state) ; in submit_logged_buffer()
1152 if (!test_bit(BH_JPrepared, &cn->bh->b_state)) { in kupdate_one_transaction()
1573 set_bit(BH_Dirty, &(real_blocks[i]->b_state)) ; in journal_read_transaction()
[all …]
/linux-2.4.37.9/drivers/md/
Draid5.c214 clear_bit(BH_Uptodate, &sh->bh_cache[i]->b_state); in init_stripe()
414 set_bit(BH_Uptodate, &bh->b_state); in raid5_end_read_request()
422 clear_bit(BH_Uptodate, &bh->b_state); in raid5_end_read_request()
429 clear_bit(BH_Uptodate, &bh->b_state); in raid5_end_read_request()
431 clear_bit(BH_Lock, &bh->b_state); in raid5_end_read_request()
456 clear_bit(BH_Lock, &bh->b_state); in raid5_end_write_request()
474 bh->b_state = (1 << BH_Req) | (1 << BH_Mapped); in raid5_build_block()
685 set_bit(BH_Uptodate, &sh->bh_cache[dd_idx]->b_state); in compute_block()
744 set_bit(BH_Lock, &bh->b_state); in compute_parity()
769 set_bit(BH_Lock, &sh->bh_cache[pd_idx]->b_state); in compute_parity()
[all …]
/linux-2.4.37.9/fs/hpfs/
Dfile.c78 bh_result->b_state |= (1UL << BH_Mapped); in hpfs_get_block()
94 bh_result->b_state |= (1UL << BH_Mapped) | (1UL << BH_New); in hpfs_get_block()
/linux-2.4.37.9/fs/freevxfs/
Dvxfs_kcompat.h15 bh->b_state |= 1 << BH_Mapped; in map_bh()
/linux-2.4.37.9/fs/jfs/
Dinode.c264 bh_result->b_state |= (1UL << BH_New); in jfs_get_block()
269 bh_result->b_state |= (1UL << BH_Mapped); in jfs_get_block()
287 bh_result->b_state |= ((1UL << BH_Mapped) | (1UL << BH_New)); in jfs_get_block()
Djfs_logmgr.c1717 lbuf->l_bh.b_state = 0; in lbmLogInit()
1859 clear_bit(BH_Uptodate, &bp->l_bh.b_state); in lbmRead()
1861 set_bit(BH_Mapped, &bp->l_bh.b_state); in lbmRead()
1862 set_bit(BH_Req, &bp->l_bh.b_state); in lbmRead()
1992 set_bit(BH_Dirty, &bp->l_bh.b_state); in lbmStartIO()
1994 assert(!test_bit(BH_Lock, &bp->l_bh.b_state)); in lbmStartIO()
1995 set_bit(BH_Lock, &bp->l_bh.b_state); in lbmStartIO()
1997 set_bit(BH_Mapped, &bp->l_bh.b_state); in lbmStartIO()
1998 set_bit(BH_Req, &bp->l_bh.b_state); in lbmStartIO()
/linux-2.4.37.9/fs/efs/
Dfile.c35 bh_result->b_state |= (1UL << BH_Mapped); in efs_get_block()
/linux-2.4.37.9/drivers/block/
Dll_rw_blk.c1005 sync = test_and_clear_bit(BH_Sync, &bh->b_state); in __make_request()
1177 bh->b_end_io(bh, test_bit(BH_Uptodate, &bh->b_state)); in __make_request()
1234 bh->b_state &= ~(1 << BH_Dirty); in generic_make_request()
1289 if (!test_bit(BH_Lock, &bh->b_state)) in submit_bh()
1292 set_bit(BH_Req, &bh->b_state); in submit_bh()
1293 set_bit(BH_Launder, &bh->b_state); in submit_bh()
1413 bh->b_end_io(bh, test_bit(BH_Uptodate, &bh->b_state)); in ll_rw_block()
Dloop.c393 if (!uptodate || test_bit(BH_Dirty, &bh->b_state)) { in loop_end_io_transfer()
430 bh->b_state = (1 << BH_Req) | (1 << BH_Mapped) | (1 << BH_Lock); in loop_get_buffer()
501 set_bit(BH_Dirty, &rbh->b_state); in loop_make_request()
512 set_bit(BH_Dirty, &bh->b_state); in loop_make_request()
541 int rw = !!test_and_clear_bit(BH_Dirty, &bh->b_state); in loop_handle_bh()
/linux-2.4.37.9/mm/
Dhighmem.c431 bh->b_state = bh_orig->b_state; in create_bounce()
/linux-2.4.37.9/fs/hfsplus/
Dhfsplus_fs.h345 bh->b_state |= (1UL << BH_Mapped); \
347 #define set_buffer_new(bh) (bh->b_state |= (1UL << BH_New))
/linux-2.4.37.9/fs/hfs/
Dfile.c117 bh_result->b_state |= (1UL << BH_Mapped); in hfs_get_block()
119 bh_result->b_state |= (1UL << BH_New); in hfs_get_block()
/linux-2.4.37.9/fs/minix/
Ditree_common.c165 bh_result->b_state |= (1UL << BH_Mapped); in get_block()
199 bh_result->b_state |= (1UL << BH_New); in get_block()
/linux-2.4.37.9/fs/ufs/
Dinode.c327 bh_result->b_state |= (1UL << BH_Mapped); in ufs_getfrag_block()
397 bh_result->b_state |= (1UL << BH_Mapped); in ufs_getfrag_block()
399 bh_result->b_state |= (1UL << BH_New); in ufs_getfrag_block()
419 dummy.b_state = 0; in ufs_getfrag()

12