• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/

Lines Matching defs:map

11 // find where objectid map starts
18 static void check_objectid_map(struct super_block *s, __le32 * map)
20 if (le32_to_cpu(map[0]) != 1)
21 reiserfs_panic(s, "vs-15010", "map corrupted: %lx",
22 (long unsigned int)le32_to_cpu(map[0]));
27 static void check_objectid_map(struct super_block *s, __le32 * map)
51 __le32 *map = objectid_map(s, rs);
56 check_objectid_map(s, map);
60 unused_objectid = le32_to_cpu(map[1]);
68 is to say, the first entry on the objectid map is the first
72 map[1] = cpu_to_le32(unused_objectid + 1);
79 by shifting the entire map to the left. */
80 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) {
81 memmove(map + 1, map + 3,
96 __le32 *map = objectid_map(s, rs);
101 check_objectid_map(s, map);
106 /* start at the beginning of the objectid map (i = 0) and go to
112 if (objectid_to_release == le32_to_cpu(map[i])) {
114 //map[i]++;
115 le32_add_cpu(&map[i], 1);
118 if (map[i] == map[i + 1]) {
119 /* shrink objectid map */
120 memmove(map + i, map + i + 2,
128 "vs-15005: objectid map corrupted cur_size == %d (max == %d)",
134 if (objectid_to_release > le32_to_cpu(map[i]) &&
135 objectid_to_release < le32_to_cpu(map[i + 1])) {
136 /* size of objectid map is not changed */
137 if (objectid_to_release + 1 == le32_to_cpu(map[i + 1])) {
139 le32_add_cpu(&map[i + 1], -1);
145 /* objectid map must be expanded, but there is no space */
150 /* expand the objectid map */
151 memmove(map + i + 3, map + i + 1,
153 map[i + 1] = cpu_to_le32(objectid_to_release);
154 map[i + 2] = cpu_to_le32(objectid_to_release + 1);
182 ** map
187 /* move the smaller objectid map past the end of the new super */