]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: restore restriper state on all mounts
authorIlya Dryomov <idryomov@gmail.com>
Fri, 22 Jun 2012 18:24:12 +0000 (12:24 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 2 Jul 2012 19:39:16 +0000 (15:39 -0400)
commit664572e1c9bb6a6640b8857bc67e5968bb8224f0
treecf457369274a1633ba02170fcb6aab0114906f0a
parent438df16e8a9bd32dd4d48062d7dc0f52953e8bd4
Btrfs: restore restriper state on all mounts

Fix a bug that triggered asserts in btrfs_balance() in both normal and
resume modes -- restriper state was not properly restored on read-only
mounts.  This factors out resuming code from btrfs_restore_balance(),
which is now also called earlier in the mount sequence to avoid the
problem of some early writes getting the old profile.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/disk-io.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h