From: Miao Xie Date: Wed, 3 Sep 2014 13:35:32 +0000 (+0800) Subject: Btrfs: fix unprotected assignment of the target device X-Git-Tag: fixes-against-v3.18-rc2~120^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c43366d3b3f0fa6c6e81aaf3aa18e0550245dad;p=pandora-kernel.git Btrfs: fix unprotected assignment of the target device We didn't protect the assignment of the target device, it might cause the problem that the super block update was skipped because we might find wrong size of the target device during the assignment. Fix it by moving the assignment sentences into the initialization function of the target device. And there is another merit that we can check if the target device is suitable more early. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed