Lines Matching refs:bh
244 struct buffer_head *bh) in ocfs2_buffer_cached() argument
253 (unsigned long long) bh->b_blocknr, in ocfs2_buffer_cached()
257 index = ocfs2_search_cache_array(ci, bh->b_blocknr); in ocfs2_buffer_cached()
259 item = ocfs2_search_cache_tree(ci, bh->b_blocknr); in ocfs2_buffer_cached()
274 struct buffer_head *bh) in ocfs2_buffer_uptodate() argument
279 if (!buffer_uptodate(bh)) in ocfs2_buffer_uptodate()
284 if (buffer_jbd(bh)) in ocfs2_buffer_uptodate()
289 return ocfs2_buffer_cached(ci, bh); in ocfs2_buffer_uptodate()
297 struct buffer_head *bh) in ocfs2_buffer_read_ahead() argument
299 return buffer_locked(bh) && ocfs2_buffer_cached(ci, bh); in ocfs2_buffer_read_ahead()
484 struct buffer_head *bh) in ocfs2_set_buffer_uptodate() argument
490 if (ocfs2_buffer_cached(ci, bh)) in ocfs2_set_buffer_uptodate()
495 (unsigned long long)bh->b_blocknr); in ocfs2_set_buffer_uptodate()
503 ocfs2_append_cache_array(ci, bh->b_blocknr); in ocfs2_set_buffer_uptodate()
515 __ocfs2_set_buffer_uptodate(ci, bh->b_blocknr, expand); in ocfs2_set_buffer_uptodate()
522 struct buffer_head *bh) in ocfs2_set_new_buffer_uptodate() argument
525 BUG_ON(ocfs2_buffer_cached(ci, bh)); in ocfs2_set_new_buffer_uptodate()
527 set_buffer_uptodate(bh); in ocfs2_set_new_buffer_uptodate()
530 ocfs2_set_buffer_uptodate(ci, bh); in ocfs2_set_new_buffer_uptodate()
604 struct buffer_head *bh) in ocfs2_remove_from_cache() argument
606 sector_t block = bh->b_blocknr; in ocfs2_remove_from_cache()