• Chris Mason's avatar
    Btrfs: add migrate page for metadata inode · 784b4e29
    Chris Mason authored
    Migrate page will directly call the btrfs btree writepage function,
    which isn't actually allowed.
    
    Our writepage assumes that you have locked the extent_buffer and
    flagged the block as written.  Without doing these steps, we can
    corrupt metadata blocks.
    
    A later commit will remove the btree writepage function since
    it is really only safely used internally by btrfs.  We
    use writepages for everything else.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    784b4e29
disk-io.c 70.2 KB