Lines Matching +full:rs +full:-

11 #define objectid_map(s,rs) (old_format_only (s) ? \  argument
12 (__le32 *)((struct reiserfs_super_block_v1 *)(rs) + 1) :\
13 (__le32 *)((rs) + 1))
20 reiserfs_panic(s, "vs-15010", "map corrupted: %lx", in check_objectid_map()
42 * non-sequential objectids, and even then it will become compact
51 struct super_block *s = th->t_super; in reiserfs_get_unused_objectid()
52 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_get_unused_objectid() local
53 __le32 *map = objectid_map(s, rs); in reiserfs_get_unused_objectid()
56 BUG_ON(!th->t_trans_id); in reiserfs_get_unused_objectid()
61 /* comment needed -Hans */ in reiserfs_get_unused_objectid()
64 reiserfs_warning(s, "reiserfs-15100", "no more object ids"); in reiserfs_get_unused_objectid()
86 if (sb_oid_cursize(rs) > 2 && map[1] == map[2]) { in reiserfs_get_unused_objectid()
88 (sb_oid_cursize(rs) - 3) * sizeof(__u32)); in reiserfs_get_unused_objectid()
89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_get_unused_objectid()
100 struct super_block *s = th->t_super; in reiserfs_release_objectid()
101 struct reiserfs_super_block *rs = SB_DISK_SUPER_BLOCK(s); in reiserfs_release_objectid() local
102 __le32 *map = objectid_map(s, rs); in reiserfs_release_objectid()
105 BUG_ON(!th->t_trans_id); in reiserfs_release_objectid()
114 * the end of it (i = disk_sb->s_oid_cursize). Linear search is in reiserfs_release_objectid()
119 while (i < sb_oid_cursize(rs)) { in reiserfs_release_objectid()
131 (sb_oid_cursize(rs) - i - in reiserfs_release_objectid()
133 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); in reiserfs_release_objectid()
135 RFALSE(sb_oid_cursize(rs) < 2 || in reiserfs_release_objectid()
136 sb_oid_cursize(rs) > sb_oid_maxsize(rs), in reiserfs_release_objectid()
137 "vs-15005: objectid map corrupted cur_size == %d (max == %d)", in reiserfs_release_objectid()
138 sb_oid_cursize(rs), sb_oid_maxsize(rs)); in reiserfs_release_objectid()
147 le32_add_cpu(&map[i + 1], -1); in reiserfs_release_objectid()
152 * JDM comparing two little-endian values for in reiserfs_release_objectid()
153 * equality -- safe in reiserfs_release_objectid()
159 if (sb_oid_cursize(rs) == sb_oid_maxsize(rs)) { in reiserfs_release_objectid()
166 (sb_oid_cursize(rs) - i - 1) * sizeof(__u32)); in reiserfs_release_objectid()
169 set_sb_oid_cursize(rs, sb_oid_cursize(rs) + 2); in reiserfs_release_objectid()
175 reiserfs_error(s, "vs-15011", "tried to free free object id (%lu)", in reiserfs_release_objectid()
183 int new_size = (s->s_blocksize - SB_SIZE) / sizeof(__u32) / 2 * 2; in reiserfs_convert_objectid_map_v1()
190 (struct reiserfs_super_block_v1 *)(SB_BUFFER_WITH_SB(s)->b_data); in reiserfs_convert_objectid_map_v1()
198 objectid_map[new_size - 1] = objectid_map[cur_size - 1]; in reiserfs_convert_objectid_map_v1()
202 for (i = new_size - 1; i >= 0; i--) { in reiserfs_convert_objectid_map_v1()
203 objectid_map[i + (old_max - new_size)] = objectid_map[i]; in reiserfs_convert_objectid_map_v1()
210 memset(disk_sb->s_label, 0, sizeof(disk_sb->s_label)); in reiserfs_convert_objectid_map_v1()
211 generate_random_uuid(disk_sb->s_uuid); in reiserfs_convert_objectid_map_v1()
214 memset(disk_sb->s_unused, 0, sizeof(disk_sb->s_unused)); in reiserfs_convert_objectid_map_v1()