From: Anand Jain Date: Wed, 13 Aug 2014 06:24:21 +0000 (+0800) Subject: btrfs: fix rw_devices miss match after seed replace X-Git-Tag: fixes-against-v3.18-rc2~120^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63dd86fa79db737a50f47488e5249f24e5acebc1;p=pandora-kernel.git btrfs: fix rw_devices miss match after seed replace reproducer: reproducer: mount /dev/sdb /btrfs btrfs dev add /dev/sdc /btrfs btrfs rep start -B /dev/sdb /dev/sdd /btrfs umount /btrfs WARNING: CPU: 0 PID: 3882 at fs/btrfs/volumes.c:892 __btrfs_close_devices+0x1c8/0x200 [btrfs]() which is WARN_ON(fs_devices->rw_devices); The problem here is that we did not add one to the rw_devices when we replace the seed device with a writable device. Signed-off-by: Anand Jain Signed-off-by: Chris Mason --- Reading git-diff-tree failed