From: Theodore Ts'o Date: Thu, 28 Oct 2010 21:33:57 +0000 (-0400) Subject: ext4: BUG_ON fix: check if page has buffers before calling page_buffers() X-Git-Tag: v2.6.37-rc1~54^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1142e8fec6a594723e5054055a7b53379b90490;p=pandora-kernel.git ext4: BUG_ON fix: check if page has buffers before calling page_buffers() We need to make check if a page does not have buffes by checking page_has_buffers(page) before calling page_buffers(page) in ext4_writepage(). Otherwise page_buffers() could throw a BUG_ON. Thanks also to Markus Trippelsdorf and Avinash Kurup who also reported the problem. Signed-off-by: "Theodore Ts'o" Reported-by: Sedat Dilek Tested-by: Sedat Dilek --- Reading git-diff-tree failed