aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-01-17 13:27:45 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-01-17 16:24:30 -0500
commitd8cdda3efb9331bedbcca2343591eab2316f4cae (patch)
treec5f2d5e58c9c9db47acbec1b68b863eae8d37a1e
parent3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5 (diff)
UBIFS: re-arrange variables in ubifs_info
This is a cosmetic patch which re-arranges variables in 'struct ubifs_info' so that all boolean-like variables which are only changed during mounting or re-mounting to R/W mode are places together. Then they are turned into bit-fields, which makes the structure a little bit smaller. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--fs/ubifs/ubifs.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 381d6b207a52..d1efa37d80ae 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -1166,22 +1166,22 @@ struct ubifs_debug_info;
1166 * @rp_uid: reserved pool user ID 1166 * @rp_uid: reserved pool user ID
1167 * @rp_gid: reserved pool group ID 1167 * @rp_gid: reserved pool group ID
1168 * 1168 *
1169 * @empty: if the UBI device is empty 1169 * @empty: %1 if the UBI device is empty
1170 * @need_recovery: %1 if the file-system needs recovery
1171 * @replaying: %1 during journal replay
1172 * @remounting_rw: %1 while re-mounting from R/O mode to R/W mode
1173 * @always_chk_crc: always check CRCs (while mounting and remounting to R/W
1174 * mode)
1170 * @replay_tree: temporary tree used during journal replay 1175 * @replay_tree: temporary tree used during journal replay
1171 * @replay_list: temporary list used during journal replay 1176 * @replay_list: temporary list used during journal replay
1172 * @replay_buds: list of buds to replay 1177 * @replay_buds: list of buds to replay
1173 * @cs_sqnum: sequence number of first node in the log (commit start node) 1178 * @cs_sqnum: sequence number of first node in the log (commit start node)
1174 * @replay_sqnum: sequence number of node currently being replayed 1179 * @replay_sqnum: sequence number of node currently being replayed
1175 * @need_recovery: file-system needs recovery
1176 * @replaying: set to %1 during journal replay
1177 * @unclean_leb_list: LEBs to recover when re-mounting R/O mounted FS to R/W 1180 * @unclean_leb_list: LEBs to recover when re-mounting R/O mounted FS to R/W
1178 * mode 1181 * mode
1179 * @rcvrd_mst_node: recovered master node to write when re-mounting R/O mounted 1182 * @rcvrd_mst_node: recovered master node to write when re-mounting R/O mounted
1180 * FS to R/W mode 1183 * FS to R/W mode
1181 * @size_tree: inode size information for recovery 1184 * @size_tree: inode size information for recovery
1182 * @remounting_rw: set while re-mounting from R/O mode to R/W mode
1183 * @always_chk_crc: always check CRCs (while mounting and remounting to R/W
1184 * mode)
1185 * @mount_opts: UBIFS-specific mount options 1185 * @mount_opts: UBIFS-specific mount options
1186 * 1186 *
1187 * @dbg: debugging-related information 1187 * @dbg: debugging-related information
@@ -1402,19 +1402,19 @@ struct ubifs_info {
1402 gid_t rp_gid; 1402 gid_t rp_gid;
1403 1403
1404 /* The below fields are used only during mounting and re-mounting */ 1404 /* The below fields are used only during mounting and re-mounting */
1405 int empty; 1405 unsigned int empty:1;
1406 unsigned int need_recovery:1;
1407 unsigned int replaying:1;
1408 unsigned int remounting_rw:1;
1409 unsigned int always_chk_crc:1;
1406 struct rb_root replay_tree; 1410 struct rb_root replay_tree;
1407 struct list_head replay_list; 1411 struct list_head replay_list;
1408 struct list_head replay_buds; 1412 struct list_head replay_buds;
1409 unsigned long long cs_sqnum; 1413 unsigned long long cs_sqnum;
1410 unsigned long long replay_sqnum; 1414 unsigned long long replay_sqnum;
1411 int need_recovery;
1412 int replaying;
1413 struct list_head unclean_leb_list; 1415 struct list_head unclean_leb_list;
1414 struct ubifs_mst_node *rcvrd_mst_node; 1416 struct ubifs_mst_node *rcvrd_mst_node;
1415 struct rb_root size_tree; 1417 struct rb_root size_tree;
1416 int remounting_rw;
1417 int always_chk_crc;
1418 struct ubifs_mount_opts mount_opts; 1418 struct ubifs_mount_opts mount_opts;
1419 1419
1420#ifdef CONFIG_UBIFS_FS_DEBUG 1420#ifdef CONFIG_UBIFS_FS_DEBUG