]> git.baikalelectronics.ru Git - kernel.git/commit
UBIFS: simplify reply code a bit
authorArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Sat, 14 Jul 2012 17:52:58 +0000 (20:52 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 20 Jul 2012 07:27:25 +0000 (10:27 +0300)
commita28c54b7215ca0b3f9f35238dbbf9c8475b7dd37
tree8d51473b4e2e842a5d90f762a14a3832f3a05b89
parent84494a701d60fdbc6f99635ff1671eda13c38bda
UBIFS: simplify reply code a bit

In the log reply code we assume that 'c->lhead_offs' is known and may be
non-zero, which is not the case because we do not store it in the master
node and have to find out by scanning on every mount. Knowing this fact
allows us to simplify the log scanning loop a bit and remove a couple
of unneeded local variables.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
fs/ubifs/replay.c