summaryrefslogtreecommitdiffstats
path: root/drivers/tc
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2009-01-05 21:43:42 +0100
committerChris Mason <chris.mason@oracle.com>2009-01-05 21:43:42 +0100
commit2d69a0f88459fae35df3ddef4934a2dad67e2765 (patch)
tree20901742766992c0b1a00e56c5c5535daa8be35b /drivers/tc
parentBtrfs: do not call kfree if kmalloc failed in btrfs_sysfs_add_super (diff)
downloadlinux-2d69a0f88459fae35df3ddef4934a2dad67e2765.tar.xz
linux-2d69a0f88459fae35df3ddef4934a2dad67e2765.zip
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 <zheng.yan@oracle.com>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions