UBI: vtbl: Use ubi_eba_atomic_leb_change()
authorRichard Weinberger <richard@nod.at>
Sat, 25 Oct 2014 17:43:41 +0000 (19:43 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Nov 2014 10:08:51 +0000 (12:08 +0200)
commitb81000b69ae99fdd77246e22ebf762a5dd008c1e
tree0a548b70b559317911acfdc52aaf1fc94e92a037
parent326087033108e7806e24974f2c8271f95cddaf3a
UBI: vtbl: Use ubi_eba_atomic_leb_change()

This is more a cosmetic change than a fix.
By using ubi_eba_atomic_leb_change()
we can guarantee that the first VTBL record is always
correct and we don't really need the second one anymore.
But we have to keep the second one to not break anything.

Artem: add a comment

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/vtbl.c