]> git.karo-electronics.de Git - mv-sheeva.git/commit
Btrfs: add migrate page for metadata inode
authorChris Mason <chris.mason@oracle.com>
Mon, 22 Nov 2010 03:20:49 +0000 (22:20 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 22 Nov 2010 03:26:02 +0000 (22:26 -0500)
commit784b4e29a26617589edd290dd2919735e190c06e
tree1c1806afb3aa5a7f82b272b8b38dc1e13e45d16b
parent6418c96107a2b399848bb8cfc6e29f11ca74fb94
Btrfs: add migrate page for metadata inode

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: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c