From: Ryusuke Konishi Date: Tue, 28 Jul 2009 08:55:29 +0000 (+0900) Subject: nilfs2: fix oops due to inconsistent state in page with discrete b-tree nodes X-Git-Tag: v2.6.31-rc6~81^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a97778457f22181e8c38c4cd7d7e528378738a98;p=pandora-kernel.git nilfs2: fix oops due to inconsistent state in page with discrete b-tree nodes Andrea Gelmini gave me a report that a kernel oops hit on a nilfs filesystem with a 1KB block size when doing rsync. This turned out to be caused by an inconsistency of dirty state between a page and its buffers storing b-tree node blocks. If the page had multiple buffers split over multiple logs, and if the logs were written at a time, a dirty flag remained in the page even every dirty flag in the buffers was cleared. This will fix the failure by dropping the dirty flag properly for pages with the discrete multiple b-tree nodes. Reported-by: Andrea Gelmini Signed-off-by: Ryusuke Konishi Tested-by: Andrea Gelmini Cc: stable@kernel.org --- Reading git-diff-tree failed