search for: buffer_trace

Displaying 6 results from an estimated 6 matches for "buffer_trace".

Did you mean: jbuffer_trace
2005 Dec 01
0
Errors reported by Coverity in ext3.
...ted by Coverity on kernel version 2.6.13, for reference. --- 1. Error reported in ext3/namei.c --- CID: 3549 Checker: CHECKED_RETURN File: fs/ext3/namei.c Function: ext3_rename Description: Return value of "__ext3_journal_get_write_access" is not checked 2260 } else { 2261 BUFFER_TRACE(new_bh, "get write access"); Event check_return: Called function "__ext3_journal_get_write_access" whose return value should be checked (checked 32 out of 39 times) Event unchecked_value: Return value of "__ext3_journal_get_write_access" is not checked Als...
2004 Mar 18
0
mark_buffer_dirty() reports buffer_head is not uptodate in JBDroutine journal_create() in kernel 2.6.
...2.6.4a/fs/jbd/journal.c 2004-03-19 10:40:49.264613984 +0800 +++ linux-2.6.4/fs/jbd/journal.c 2004-03-19 10:41:12.091143824 +0800 @@ -832,10 +832,10 @@ bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); lock_buffer(bh); memset (bh->b_data, 0, journal->j_blocksize); - BUFFER_TRACE(bh, "marking dirty"); - mark_buffer_dirty(bh); BUFFER_TRACE(bh, "marking uptodate"); set_buffer_uptodate(bh); + BUFFER_TRACE(bh, "marking dirty"); + mark_buffer_dirty(bh); unlock_buffer(bh); __brelse(bh); } --Sonic Zhang
2004 Apr 01
1
ext3_free_data()
...*/ u32 *block_to_free_p = NULL; /* Pointer into inode/ind corresponding to block_to_free */ unsigned long nr; /* Current block # */ u32 *p; /* Pointer into inode/ind for current block */ int err; if (this_bh) { /* For indirect block */ BUFFER_TRACE(this_bh, "get_write_access"); err = ext3_journal_get_write_access(handle, this_bh); /* Important: if we can't update the indirect pointers * to the blocks, we can't free them. */ if (err) return; } for (p = first; p < last; p++) { conditional_schedule(); nr =...
2002 Apr 02
0
[patch] fix ext3 i_blocks accounting
...desc * gdp; struct ext3_super_block * es; @@ -644,8 +645,7 @@ int ext3_new_block (handle_t *handle, st } /* No space left on the device */ - unlock_super (sb); - return 0; + goto out; search_back: /* @@ -694,6 +694,7 @@ got_block: J_ASSERT_BH(bh, !ext3_test_bit(j, bh->b_data)); BUFFER_TRACE(bh, "setting bitmap bit"); ext3_set_bit(j, bh->b_data); + performed_allocation = 1; #ifdef CONFIG_JBD_DEBUG { @@ -815,6 +816,11 @@ out: ext3_std_error(sb, fatal); } unlock_super (sb); + /* + * Undo the block allocation + */ + if (!performed_allocation) + DQUOT_FREE_BLO...
2005 Sep 09
7
[PATCH 0/6] jbd cleanup
The following 6 patches cleanup the jbd code and kill about 200 lines. First of 4 patches can apply to 2.6.13-git8 and 2.6.13-mm2. The rest of them can apply to 2.6.13-mm2. fs/jbd/checkpoint.c | 179 +++++++++++-------------------------------- fs/jbd/commit.c | 101 ++++++++++-------------- fs/jbd/journal.c | 11 +- fs/jbd/revoke.c | 158
2010 Aug 04
6
[PATCH -v2 0/3] jbd2 scalability patches
This version fixes three bugs in the 2nd patch of this series that caused kernel BUG when the system was under race. We weren't accounting with t_oustanding_credits correctly, and there were race conditions caused by the fact the I had overlooked the fact that __jbd2_log_wait_for_space() and jbd2_get_transaction() requires j_state_lock to be write locked. Theodore Ts'o (3): jbd2: Use