From: Aneesh Kumar K.V Date: Tue, 12 May 2009 20:22:37 +0000 (-0400) Subject: vfs: Add BUG_ON for delayed and unwritten flags in submit_bh() X-Git-Tag: v2.6.31-rc1~396^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb0e342481c4d80040670fec915f0b9c7c6499a;p=pandora-kernel.git vfs: Add BUG_ON for delayed and unwritten flags in submit_bh() The BH_Delay and BH_Unwritten flags should never leak out to submit_bh(). So add some BUG_ON() checks to submit_bh so we can get a stack trace and determine how and why this might have happened. (Note that only XFS and ext4 use these buffer head flags, and XFS does not use submit_bh(). So this patch should only modify behavior for ext4.) Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" Cc: linux-fsdevel@vger.kernel.org --- Reading git-diff-tree failed