From: Ryusuke Konishi Date: Tue, 5 May 2009 12:52:06 +0000 (+0900) Subject: nilfs2: ensure to clear dirty state when deleting metadata file block X-Git-Tag: linux-omap-v2.6.30-rc6~19^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=843382370ec614768ac13582405f93635cf3637c;p=pandora-kernel.git nilfs2: ensure to clear dirty state when deleting metadata file block This would fix the following failure during GC: nilfs_cpfile_delete_checkpoints: cannot delete block NILFS: GC failed during preparation: cannot delete checkpoints: err=-2 The problem was caused by a break in state consistency between page cache and btree; the above block was removed from the btree but the page buffering the block was remaining in the page cache in dirty state. This resolves the inconsistency by ensuring to clear dirty state of the page buffering the deleted block. Reported-by: David Arendt Signed-off-by: Ryusuke Konishi --- Reading git-diff-tree failed