• C
    Btrfs: flush out and clean up any block device pages during mount · 3c4bb26b
    Chris Mason 提交于
    Btrfs puts the filesystem metadata into its own address space, and
    somehow the block device address space isn't getting onto disk properly
    before a mount.  The end result is that a loop of mkfs and mounting the
    filesystem will sometimes find stale or incorrect data.
    
    This commit should fix it by sprinkling fdatawrites and invalidate_bdev
    calls around.  This is a short term measure to make sure it is fixed.
    The block devices really should be flushed and cleaned up higher in the
    stack.
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    3c4bb26b
disk-io.c 99.5 KB