]> git.baikalelectronics.ru Git - kernel.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)
commitd7a2d0b52712fa27a6638b014efd53d75997c090
tree1c1806afb3aa5a7f82b272b8b38dc1e13e45d16b
parent692dde84cdd3103648fefcca4adc5b58fa76a9d2
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