From: Yan Zheng Date: Mon, 5 Jan 2009 20:43:42 +0000 (-0500) Subject: Btrfs: avoid potential super block corruption X-Git-Tag: v2.6.29-rc1~27^2~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d69a0f88459fae35df3ddef4934a2dad67e2765;p=pandora-kernel.git Btrfs: avoid potential super block corruption The data in fs_info->super_for_commit are zeros before the first transaction commit. If tree log sync and system crash both occur before the first transaction commit, super block will get corrupted. This fixes it by properly filling in the super_for_commit field at open time. Signed-off-by: Yan Zheng --- Reading git-diff-tree failed