]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit68310a5e42f93c2242ec1836c3b18d531e0065e2
treecf457369274a1633ba02170fcb6aab0114906f0a
parentc3473e830074ef04f974f2829690942dd8580619
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