UBI: block: Set disk_capacity out of the mutex
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 5 May 2014 10:11:53 +0000 (07:11 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 28 Jul 2014 15:52:10 +0000 (18:52 +0300)
commit0a3d571bb8940a189322cc5f51466bdab044a48b
tree80e24c5569765253b922a27f3a47e77678471876
parent495f2bf6c4ed2da5dcadac96312f71da2a5af949
UBI: block: Set disk_capacity out of the mutex

There's no need to set the disk capacity with the mutex held, so this
commit takes the variable setting out of the mutex. This simplifies
the disk capacity fix for very large volumes in a follow up commit.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/block.c