]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
UBIFS: define journal head numbers in ubifs-media.h
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 15 Sep 2009 11:44:06 +0000 (14:44 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 15 Sep 2009 11:45:35 +0000 (14:45 +0300)
The journal head names and numbers are part of the UBIFS format, so
they should be in the ubifs-media.h.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/ubifs-media.h
fs/ubifs/ubifs.h

index 3eee07e0c4955b91a0aff3e0be7c5e0c6368dc3e..191ca7863fe7a94bcca45ab2b2ba2ab6dae74e7b 100644 (file)
 /* The key is always at the same position in all keyed nodes */
 #define UBIFS_KEY_OFFSET offsetof(struct ubifs_ino_node, key)
 
+/* Garbage collector journal head number */
+#define UBIFS_GC_HEAD   0
+/* Base journal head number */
+#define UBIFS_BASE_HEAD 1
+/* Data journal head number */
+#define UBIFS_DATA_HEAD 2
+
 /*
  * LEB Properties Tree node types.
  *
index 9782e7cf8f2b2a132a9f027f3f3592f4a6d9e344..8ca441f5c7ea3324829ff7f79f8895b49c4f0515 100644 (file)
 /* Number of non-data journal heads */
 #define NONDATA_JHEADS_CNT 2
 
-/* Garbage collector head */
-#define GCHD   0
-/* Base journal head number */
-#define BASEHD 1
-/* First "general purpose" journal head */
-#define DATAHD 2
+/* Shorter names for journal head numbers for internal usage */
+#define GCHD   UBIFS_GC_HEAD
+#define BASEHD UBIFS_BASE_HEAD
+#define DATAHD UBIFS_DATA_HEAD
 
 /* 'No change' value for 'ubifs_change_lp()' */
 #define LPROPS_NC 0x80000001