]> git.openfabrics.org - ~emulex/infiniband.git/commit
UBIFS: add missing ui pointer in debugging code
authorDaniel Golle <daniel@makrotopia.org>
Tue, 13 May 2014 20:27:58 +0000 (22:27 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 27 May 2014 12:23:40 +0000 (15:23 +0300)
commita0fd59511e0a0514d24044a29da0f6144f8600e5
tree25cf5a83b7248faf7f77be12edbd7cb5c009c936
parent151d6b21f973c585efa052b0ff0fab473ef47831
UBIFS: add missing ui pointer in debugging code

If UBIFS_DEBUG is defined an additional assertion of the ui_lock
spinlock in do_writepage cannot compile because the ui pointer has not
been previously declared.

Fix this by declaring and initializing the ui pointer in case
UBIFS_DEBUG is defined.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/file.c