Skip to content
Commit 2d69a0f8 authored by Yan Zheng's avatar Yan Zheng Committed by Chris Mason
Browse files

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: default avatarYan Zheng <zheng.yan@oracle.com>
parent dd3fd8bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment