UBIFS: introduce mounting flag
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Jan 2011 20:27:56 +0000 (22:27 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Jan 2011 21:24:30 +0000 (23:24 +0200)
commit18d1d7fbcc260e67d249bf90b454d8cf34288453
tree160479d5a455ea2ac111ecbbf0e48f6a5dfcf0ea
parentd8cdda3efb9331bedbcca2343591eab2316f4cae
UBIFS: introduce mounting flag

This is a preparational patch which removes the 'c->always_chk_crc' which was
set during mounting and remounting to R/W mode and introduces 'c->mounting'
flag which is set when mounting. Now the 'c->always_chk_crc' flag is the
same as 'c->remounting_rw && c->mounting'.

This patch is a preparation for the next one which will need to know when we
are mounting and remounting to R/W mode, which is exactly what
'c->always_chk_crc' effectively is, but its name does not suite the
next patch. The other possibility would be to just re-name it, but then
we'd end up with less logical flags coverage.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/io.c
fs/ubifs/super.c
fs/ubifs/tnc.c
fs/ubifs/ubifs.h