]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: adjust the fs_devices->missing count on unmount
authorJosef Bacik <jbacik@fusionio.com>
Mon, 26 Aug 2013 17:45:53 +0000 (13:45 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:31 +0000 (08:16 -0400)
commit3ade152ed9bdb7629ef30ba4cb20a56b3624d7a4
tree5ecb08aeceb613806216b96b983bb12b3c31500b
parent0904d55c9ee6f661fd32f5e92a3b10ef55118255
Btrfs: adjust the fs_devices->missing count on unmount

I noticed that if I tried to mount a file system with -o degraded after having
done it once already we would fail to mount.  This is because the
fs_devices->missing count was getting bumped everytime we mounted, but not
getting reset whenever we unmounted.  To fix this we just drop the missing count
as we're closing devices to make sure this doesn't happen.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c