ext4: fix a BUG_ON crash by checking that page has buffers attached to it
authorTheodore Ts'o <tytso@mit.edu>
Thu, 1 Oct 2009 02:57:41 +0000 (22:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Oct 2009 02:57:41 +0000 (22:57 -0400)
commit1f94533d9cd75f6d2826018d54a971b9cc085992
tree16c85061eabfcdece2487909bc08c45d2c01d84f
parentc1fccc0696bcaff6008c11865091f5ec4b0937ab
ext4: fix a BUG_ON crash by checking that page has buffers attached to it

In ext4_num_dirty_pages() we were calling page_buffers() before
checking to see if the page actually had pages attached to it; this
would cause a BUG check crash in the inline function page_buffers().

Thanks to Markus Trippelsdorf for reporting this bug.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c