]> 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)
commitda270dfc05341cb949a26d42322adb48c0f62620
treecf457369274a1633ba02170fcb6aab0114906f0a
parent5d21f800d9b200aada60fa4de2401c8b8d9f3007
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