From: Theodore Ts'o Date: Thu, 10 Sep 2009 01:32:41 +0000 (-0400) Subject: ext4: Use bforget() in no journal mode for ext4_journal_{forget,revoke}() X-Git-Tag: v2.6.32-rc1~633^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7acb4c16646943180bd221c167a077e0a084f9c;p=pandora-kernel.git ext4: Use bforget() in no journal mode for ext4_journal_{forget,revoke}() When ext4 is using a journal, a metadata block which is deallocated must be passed into the journal layer so it can be dropped from the current transaction and/or revoked. This is done by calling the functions ext4_journal_forget() and ext4_journal_revoke(), which call jbd2_journal_forget(), and jbd2_journal_revoke(), respectively. Since the jbd2_journal_forget() and jbd2_journal_revoke() call bforget(), if ext4 is not using a journal, ext4_journal_forget() and ext4_journal_revoke() must call bforget() to avoid a dirty metadata block overwriting a block after it has been reallocated and reused for another inode's data block. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed