Lines Matching defs:map
10 /* find where objectid map starts */
17 static void check_objectid_map(struct super_block *s, __le32 * map)
19 if (le32_to_cpu(map[0]) != 1)
20 reiserfs_panic(s, "vs-15010", "map corrupted: %lx",
21 (long unsigned int)le32_to_cpu(map[0]));
27 static void check_objectid_map(struct super_block *s, __le32 * map)
53 __le32 *map = objectid_map(s, rs);
58 check_objectid_map(s, map);
62 unused_objectid = le32_to_cpu(map[1]);
71 * is to say, the first entry on the objectid map is the first
76 map[1] = cpu_to_le32(unused_objectid + 1);
84 * by shifting the entire map to the left.
86 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) {
87 memmove(map + 1, map + 3,
102 __le32 *map = objectid_map(s, rs);
107 check_objectid_map(s, map);
113 * start at the beginning of the objectid map (i = 0) and go to
120 if (objectid_to_release == le32_to_cpu(map[i])) {
122 le32_add_cpu(&map[i], 1);
128 if (map[i] == map[i + 1]) {
129 /* shrink objectid map */
130 memmove(map + i, map + i + 2,
137 "vs-15005: objectid map corrupted cur_size == %d (max == %d)",
143 if (objectid_to_release > le32_to_cpu(map[i]) &&
144 objectid_to_release < le32_to_cpu(map[i + 1])) {
145 /* size of objectid map is not changed */
146 if (objectid_to_release + 1 == le32_to_cpu(map[i + 1])) {
147 le32_add_cpu(&map[i + 1], -1);
156 * objectid map must be expanded, but
164 /* expand the objectid map */
165 memmove(map + i + 3, map + i + 1,
167 map[i + 1] = cpu_to_le32(objectid_to_release);
168 map[i + 2] = cpu_to_le32(objectid_to_release + 1);
196 * the end of the objectid map
201 /* move the smaller objectid map past the end of the new super */