search for: bh2jh

Displaying 3 results from an estimated 3 matches for "bh2jh".

Did you mean: bh265
2005 Dec 01
0
Errors reported by Coverity in ext3.
...c --- CID: 3545 Checker: CHECKED_RETURN File: fs/ext3/balloc.c Function: ext3_free_blocks_sb Description: Return value of "test_and_set_bit" is not checked 439 BUFFER_TRACE(bitmap_bh, "set in b_committed_data"); 440 J_ASSERT_BH(bitmap_bh, 441 bh2jh(bitmap_bh)->b_committed_data != NULL); Event check_return: Called function "test_and_set_bit" whose return value should be checked (checked 83 out of 95 times) Event unchecked_value: Return value of "test_and_set_bit" is not checked 442 ext3_set_bit_atomic...
2009 Jun 19
6
[PATCH 1/5] ocfs2: Pin journal head before accessing jh->b_committed_data
...-923,14 +923,23 @@ static int ocfs2_test_bg_bit_allocatable(struct buffer_head *bg_bh, int nr) { struct ocfs2_group_desc *bg = (struct ocfs2_group_desc *) bg_bh->b_data; + int ret; if (ocfs2_test_bit(nr, (unsigned long *)bg->bg_bitmap)) return 0; - if (!buffer_jbd(bg_bh) || !bh2jh(bg_bh)->b_committed_data) + + if (!buffer_jbd(bg_bh)) return 1; + jbd_lock_bh_state(bg_bh); bg = (struct ocfs2_group_desc *) bh2jh(bg_bh)->b_committed_data; - return !ocfs2_test_bit(nr, (unsigned long *)bg->bg_bitmap); + if (bg) + ret = !ocfs2_test_bit(nr, (unsigned long *)bg->b...
2009 Sep 23
0
jbd/kjournald oops on 2.6.30.1
...>: je 0xffffffff8037b794 <__journal_remove_journal_head+52> ....... ....... ============== The oops seems be due to NULL journal head while evaluating J_ASSERT_JH() macro: ============== static void __journal_remove_journal_head(struct buffer_head *bh) { struct journal_head *jh = bh2jh(bh); J_ASSERT_JH(jh, jh->b_jcount >= 0); <=== jh is NULL get_bh(bh); if (jh->b_jcount == 0) { if (jh->b_transaction == NULL && .... ============= Not sure why would that happen (corruption?). Few system details: ================ - 64-bi...