UBIFS: remount ro fixes
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Thu, 29 Jan 2009 10:59:33 +0000 (12:59 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 29 Jan 2009 14:19:36 +0000 (16:19 +0200)
commitb466f17d780c5b72427f36aef22ecdec9f1d0689
tree09346513db7a7563f9a79ec0e6ec56b8536fabe9
parent227c75c91dbfa037d109ab7ef45b7f5ba9cab6d0
UBIFS: remount ro fixes

- preserve the idx_gc list - it will be needed in the same
state, should UBIFS be remounted rw again
- prevent remounting ro if we have switched to read only
mode (due to a fatal error)

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/gc.c
fs/ubifs/super.c
fs/ubifs/ubifs.h