diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-28 11:48:45 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-28 11:48:45 -0400 |
| commit | 56409abbf8a9e3754d752d0189f9b9a609ec78de (patch) | |
| tree | ad58978a564ce0679d4a560e187840308ed7cc25 | |
| parent | bac1e07926ae514739e6a12218c8b6ce8ce04514 (diff) | |
[GFS2] Remove some unused code
Remove some of the unused code flagged up by Adrian Bunk.
Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse
| -rw-r--r-- | fs/gfs2/bmap.c | 31 | ||||
| -rw-r--r-- | fs/gfs2/eattr.c | 27 | ||||
| -rw-r--r-- | fs/gfs2/glock.c | 23 | ||||
| -rw-r--r-- | fs/gfs2/lvb.c | 9 | ||||
| -rw-r--r-- | fs/gfs2/ondisk.c | 225 |
5 files changed, 0 insertions, 315 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index f570d8caef68..cfe1a428c668 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
| @@ -49,37 +49,6 @@ struct strip_mine { | |||
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | /** | 51 | /** |
| 52 | * @gfs2_unstuffer_sync - Synchronously unstuff a dinode | ||
| 53 | * @ip: | ||
| 54 | * @dibh: | ||
| 55 | * @block: | ||
| 56 | * @private: | ||
| 57 | * | ||
| 58 | * Cheat and use a metadata buffer instead of a data page. | ||
| 59 | * | ||
| 60 | * Returns: errno | ||
| 61 | */ | ||
| 62 | #if 0 | ||
| 63 | int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh, | ||
| 64 | uint64_t block, void *private) | ||
| 65 | { | ||
| 66 | struct buffer_head *bh; | ||
| 67 | int error; | ||
| 68 | |||
| 69 | bh = gfs2_meta_new(ip->i_gl, block); | ||
| 70 | |||
| 71 | gfs2_buffer_copy_tail(bh, 0, dibh, sizeof(struct gfs2_dinode)); | ||
| 72 | |||
| 73 | set_buffer_dirty(bh); | ||
| 74 | error = sync_dirty_buffer(bh); | ||
| 75 | |||
| 76 | brelse(bh); | ||
| 77 | |||
| 78 | return error; | ||
| 79 | } | ||
| 80 | #endif /* 0 */ | ||
| 81 | |||
| 82 | /** | ||
| 83 | * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big | 52 | * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big |
| 84 | * @ip: The GFS2 inode to unstuff | 53 | * @ip: The GFS2 inode to unstuff |
| 85 | * @unstuffer: the routine that handles unstuffing a non-zero length file | 54 | * @unstuffer: the routine that handles unstuffing a non-zero length file |
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c index d3316cab2be4..af4f1c3f5929 100644 --- a/fs/gfs2/eattr.c +++ b/fs/gfs2/eattr.c | |||
| @@ -358,33 +358,6 @@ static int ea_remove_unstuffed(struct gfs2_inode *ip, struct buffer_head *bh, | |||
| 358 | return error; | 358 | return error; |
| 359 | } | 359 | } |
| 360 | 360 | ||
| 361 | #if 0 | ||
| 362 | |||
| 363 | static int gfs2_ea_repack_i(struct gfs2_inode *ip) | ||
| 364 | { | ||
| 365 | return -EOPNOTSUPP; | ||
| 366 | } | ||
| 367 | |||
| 368 | int gfs2_ea_repack(struct gfs2_inode *ip) | ||
| 369 | { | ||
| 370 | struct gfs2_holder gh; | ||
| 371 | int error; | ||
| 372 | |||
| 373 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh); | ||
| 374 | if (error) | ||
| 375 | return error; | ||
| 376 | |||
| 377 | /* Some sort of permissions checking would be nice */ | ||
| 378 | |||
| 379 | error = gfs2_ea_repack_i(ip); | ||
| 380 | |||
| 381 | gfs2_glock_dq_uninit(&gh); | ||
| 382 | |||
| 383 | return error; | ||
| 384 | } | ||
| 385 | |||
| 386 | #endif /* 0 */ | ||
| 387 | |||
| 388 | struct ea_list { | 361 | struct ea_list { |
| 389 | struct gfs2_ea_request *ei_er; | 362 | struct gfs2_ea_request *ei_er; |
| 390 | unsigned int ei_size; | 363 | unsigned int ei_size; |
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 0a5a0e87b0a6..4fb8066dc745 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
| @@ -1328,29 +1328,6 @@ static void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, | |||
| 1328 | glops->go_xmote_th(gl, state, flags); | 1328 | glops->go_xmote_th(gl, state, flags); |
| 1329 | } | 1329 | } |
| 1330 | 1330 | ||
| 1331 | /** | ||
| 1332 | * gfs2_glock_force_drop - Force a glock to be uncached | ||
| 1333 | * @gl: the glock | ||
| 1334 | * | ||
| 1335 | */ | ||
| 1336 | #if 0 | ||
| 1337 | void gfs2_glock_force_drop(struct gfs2_glock *gl) | ||
| 1338 | { | ||
| 1339 | struct gfs2_holder gh; | ||
| 1340 | |||
| 1341 | gfs2_holder_init(gl, LM_ST_UNLOCKED, 0, &gh); | ||
| 1342 | set_bit(HIF_DEMOTE, &gh.gh_iflags); | ||
| 1343 | |||
| 1344 | spin_lock(&gl->gl_spin); | ||
| 1345 | list_add_tail(&gh.gh_list, &gl->gl_waiters2); | ||
| 1346 | run_queue(gl); | ||
| 1347 | spin_unlock(&gl->gl_spin); | ||
| 1348 | |||
| 1349 | wait_for_completion(&gh.gh_wait); | ||
| 1350 | gfs2_holder_uninit(&gh); | ||
| 1351 | } | ||
| 1352 | #endif /* 0 */ | ||
| 1353 | |||
| 1354 | static void greedy_work(void *data) | 1331 | static void greedy_work(void *data) |
| 1355 | { | 1332 | { |
| 1356 | struct greedy *gr = data; | 1333 | struct greedy *gr = data; |
diff --git a/fs/gfs2/lvb.c b/fs/gfs2/lvb.c index 9d72872c6f73..47867db92ea1 100644 --- a/fs/gfs2/lvb.c +++ b/fs/gfs2/lvb.c | |||
| @@ -43,13 +43,4 @@ void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb) | |||
| 43 | str->qb_value = cpu_to_be64(qb->qb_value); | 43 | str->qb_value = cpu_to_be64(qb->qb_value); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | #if 0 | ||
| 47 | void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb) | ||
| 48 | { | ||
| 49 | pv(qb, qb_magic, "%u"); | ||
| 50 | pv(qb, qb_limit, "%llu"); | ||
| 51 | pv(qb, qb_warn, "%llu"); | ||
| 52 | pv(qb, qb_value, "%lld"); | ||
| 53 | } | ||
| 54 | #endif /* 0 */ | ||
| 55 | 46 | ||
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index b11e659bdd9e..f6aba3b156c2 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
| @@ -19,30 +19,6 @@ | |||
| 19 | 19 | ||
| 20 | #define pv(struct, member, fmt) printk(KERN_INFO " "#member" = "fmt"\n", \ | 20 | #define pv(struct, member, fmt) printk(KERN_INFO " "#member" = "fmt"\n", \ |
| 21 | struct->member); | 21 | struct->member); |
| 22 | #define pa(struct, member, count) print_array(#member, struct->member, count); | ||
| 23 | |||
| 24 | /** | ||
| 25 | * print_array - Print out an array of bytes | ||
| 26 | * @title: what to print before the array | ||
| 27 | * @buf: the array | ||
| 28 | * @count: the number of bytes | ||
| 29 | * | ||
| 30 | */ | ||
| 31 | #if 0 | ||
| 32 | static void print_array(char *title, char *buf, int count) | ||
| 33 | { | ||
| 34 | int x; | ||
| 35 | |||
| 36 | printk(KERN_INFO " %s =\n" KERN_INFO, title); | ||
| 37 | for (x = 0; x < count; x++) { | ||
| 38 | printk("%.2X ", (unsigned char)buf[x]); | ||
| 39 | if (x % 16 == 15) | ||
| 40 | printk("\n" KERN_INFO); | ||
| 41 | } | ||
| 42 | if (x % 16) | ||
| 43 | printk("\n"); | ||
| 44 | } | ||
| 45 | #endif /* 0 */ | ||
| 46 | 22 | ||
| 47 | /* | 23 | /* |
| 48 | * gfs2_xxx_in - read in an xxx struct | 24 | * gfs2_xxx_in - read in an xxx struct |
| @@ -122,24 +98,6 @@ void gfs2_sb_in(struct gfs2_sb *sb, char *buf) | |||
| 122 | memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN); | 98 | memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN); |
| 123 | } | 99 | } |
| 124 | 100 | ||
| 125 | #if 0 | ||
| 126 | void gfs2_sb_print(struct gfs2_sb *sb) | ||
| 127 | { | ||
| 128 | gfs2_meta_header_print(&sb->sb_header); | ||
| 129 | |||
| 130 | pv(sb, sb_fs_format, "%u"); | ||
| 131 | pv(sb, sb_multihost_format, "%u"); | ||
| 132 | |||
| 133 | pv(sb, sb_bsize, "%u"); | ||
| 134 | pv(sb, sb_bsize_shift, "%u"); | ||
| 135 | |||
| 136 | gfs2_inum_print(&sb->sb_master_dir); | ||
| 137 | |||
| 138 | pv(sb, sb_lockproto, "%s"); | ||
| 139 | pv(sb, sb_locktable, "%s"); | ||
| 140 | } | ||
| 141 | #endif /* 0 */ | ||
| 142 | |||
| 143 | void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf) | 101 | void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf) |
| 144 | { | 102 | { |
| 145 | struct gfs2_rindex *str = (struct gfs2_rindex *)buf; | 103 | struct gfs2_rindex *str = (struct gfs2_rindex *)buf; |
| @@ -152,23 +110,6 @@ void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf) | |||
| 152 | 110 | ||
| 153 | } | 111 | } |
| 154 | 112 | ||
| 155 | #if 0 | ||
| 156 | void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf) | ||
| 157 | { | ||
| 158 | struct gfs2_rindex *str = (struct gfs2_rindex *)buf; | ||
| 159 | |||
| 160 | str->ri_addr = cpu_to_be64(ri->ri_addr); | ||
| 161 | str->ri_length = cpu_to_be32(ri->ri_length); | ||
| 162 | str->__pad = 0; | ||
| 163 | |||
| 164 | str->ri_data0 = cpu_to_be64(ri->ri_data0); | ||
| 165 | str->ri_data = cpu_to_be32(ri->ri_data); | ||
| 166 | str->ri_bitbytes = cpu_to_be32(ri->ri_bitbytes); | ||
| 167 | memset(str->ri_reserved, 0, sizeof(str->ri_reserved)); | ||
| 168 | } | ||
| 169 | |||
| 170 | #endif /* 0 */ | ||
| 171 | |||
| 172 | void gfs2_rindex_print(struct gfs2_rindex *ri) | 113 | void gfs2_rindex_print(struct gfs2_rindex *ri) |
| 173 | { | 114 | { |
| 174 | pv(ri, ri_addr, "%llu"); | 115 | pv(ri, ri_addr, "%llu"); |
| @@ -202,18 +143,6 @@ void gfs2_rgrp_out(struct gfs2_rgrp *rg, char *buf) | |||
| 202 | memset(&str->rg_reserved, 0, sizeof(str->rg_reserved)); | 143 | memset(&str->rg_reserved, 0, sizeof(str->rg_reserved)); |
| 203 | } | 144 | } |
| 204 | 145 | ||
| 205 | #if 0 | ||
| 206 | void gfs2_rgrp_print(struct gfs2_rgrp *rg) | ||
| 207 | { | ||
| 208 | gfs2_meta_header_print(&rg->rg_header); | ||
| 209 | pv(rg, rg_flags, "%u"); | ||
| 210 | pv(rg, rg_free, "%u"); | ||
| 211 | pv(rg, rg_dinodes, "%u"); | ||
| 212 | |||
| 213 | pa(rg, rg_reserved, 36); | ||
| 214 | } | ||
| 215 | #endif /* 0 */ | ||
| 216 | |||
| 217 | void gfs2_quota_in(struct gfs2_quota *qu, char *buf) | 146 | void gfs2_quota_in(struct gfs2_quota *qu, char *buf) |
| 218 | { | 147 | { |
| 219 | struct gfs2_quota *str = (struct gfs2_quota *)buf; | 148 | struct gfs2_quota *str = (struct gfs2_quota *)buf; |
| @@ -223,26 +152,6 @@ void gfs2_quota_in(struct gfs2_quota *qu, char *buf) | |||
| 223 | qu->qu_value = be64_to_cpu(str->qu_value); | 152 | qu->qu_value = be64_to_cpu(str->qu_value); |
| 224 | } | 153 | } |
| 225 | 154 | ||
| 226 | #if 0 | ||
| 227 | |||
| 228 | void gfs2_quota_out(struct gfs2_quota *qu, char *buf) | ||
| 229 | { | ||
| 230 | struct gfs2_quota *str = (struct gfs2_quota *)buf; | ||
| 231 | |||
| 232 | str->qu_limit = cpu_to_be64(qu->qu_limit); | ||
| 233 | str->qu_warn = cpu_to_be64(qu->qu_warn); | ||
| 234 | str->qu_value = cpu_to_be64(qu->qu_value); | ||
| 235 | } | ||
| 236 | |||
| 237 | void gfs2_quota_print(struct gfs2_quota *qu) | ||
| 238 | { | ||
| 239 | pv(qu, qu_limit, "%llu"); | ||
| 240 | pv(qu, qu_warn, "%llu"); | ||
| 241 | pv(qu, qu_value, "%lld"); | ||
| 242 | } | ||
| 243 | |||
| 244 | #endif /* 0 */ | ||
| 245 | |||
| 246 | void gfs2_dinode_in(struct gfs2_dinode *di, char *buf) | 155 | void gfs2_dinode_in(struct gfs2_dinode *di, char *buf) |
| 247 | { | 156 | { |
| 248 | struct gfs2_dinode *str = (struct gfs2_dinode *)buf; | 157 | struct gfs2_dinode *str = (struct gfs2_dinode *)buf; |
| @@ -339,77 +248,6 @@ void gfs2_dinode_print(struct gfs2_dinode *di) | |||
| 339 | pv(di, di_eattr, "%llu"); | 248 | pv(di, di_eattr, "%llu"); |
| 340 | } | 249 | } |
| 341 | 250 | ||
| 342 | #if 0 | ||
| 343 | |||
| 344 | void gfs2_dirent_print(struct gfs2_dirent *de, char *name) | ||
| 345 | { | ||
| 346 | char buf[GFS2_FNAMESIZE + 1]; | ||
| 347 | |||
| 348 | gfs2_inum_print(&de->de_inum); | ||
| 349 | pv(de, de_hash, "0x%.8X"); | ||
| 350 | pv(de, de_rec_len, "%u"); | ||
| 351 | pv(de, de_name_len, "%u"); | ||
| 352 | pv(de, de_type, "%u"); | ||
| 353 | |||
| 354 | memset(buf, 0, GFS2_FNAMESIZE + 1); | ||
| 355 | memcpy(buf, name, de->de_name_len); | ||
| 356 | printk(KERN_INFO " name = %s\n", buf); | ||
| 357 | } | ||
| 358 | |||
| 359 | void gfs2_leaf_print(struct gfs2_leaf *lf) | ||
| 360 | { | ||
| 361 | gfs2_meta_header_print(&lf->lf_header); | ||
| 362 | pv(lf, lf_depth, "%u"); | ||
| 363 | pv(lf, lf_entries, "%u"); | ||
| 364 | pv(lf, lf_dirent_format, "%u"); | ||
| 365 | pv(lf, lf_next, "%llu"); | ||
| 366 | |||
| 367 | pa(lf, lf_reserved, 32); | ||
| 368 | } | ||
| 369 | |||
| 370 | void gfs2_ea_header_in(struct gfs2_ea_header *ea, char *buf) | ||
| 371 | { | ||
| 372 | struct gfs2_ea_header *str = (struct gfs2_ea_header *)buf; | ||
| 373 | |||
| 374 | ea->ea_rec_len = be32_to_cpu(str->ea_rec_len); | ||
| 375 | ea->ea_data_len = be32_to_cpu(str->ea_data_len); | ||
| 376 | ea->ea_name_len = str->ea_name_len; | ||
| 377 | ea->ea_type = str->ea_type; | ||
| 378 | ea->ea_flags = str->ea_flags; | ||
| 379 | ea->ea_num_ptrs = str->ea_num_ptrs; | ||
| 380 | } | ||
| 381 | |||
| 382 | void gfs2_ea_header_out(struct gfs2_ea_header *ea, char *buf) | ||
| 383 | { | ||
| 384 | struct gfs2_ea_header *str = (struct gfs2_ea_header *)buf; | ||
| 385 | |||
| 386 | str->ea_rec_len = cpu_to_be32(ea->ea_rec_len); | ||
| 387 | str->ea_data_len = cpu_to_be32(ea->ea_data_len); | ||
| 388 | str->ea_name_len = ea->ea_name_len; | ||
| 389 | str->ea_type = ea->ea_type; | ||
| 390 | str->ea_flags = ea->ea_flags; | ||
| 391 | str->ea_num_ptrs = ea->ea_num_ptrs; | ||
| 392 | str->__pad = 0; | ||
| 393 | } | ||
| 394 | |||
| 395 | void gfs2_ea_header_print(struct gfs2_ea_header *ea, char *name) | ||
| 396 | { | ||
| 397 | char buf[GFS2_EA_MAX_NAME_LEN + 1]; | ||
| 398 | |||
| 399 | pv(ea, ea_rec_len, "%u"); | ||
| 400 | pv(ea, ea_data_len, "%u"); | ||
| 401 | pv(ea, ea_name_len, "%u"); | ||
| 402 | pv(ea, ea_type, "%u"); | ||
| 403 | pv(ea, ea_flags, "%u"); | ||
| 404 | pv(ea, ea_num_ptrs, "%u"); | ||
| 405 | |||
| 406 | memset(buf, 0, GFS2_EA_MAX_NAME_LEN + 1); | ||
| 407 | memcpy(buf, name, ea->ea_name_len); | ||
| 408 | printk(KERN_INFO " name = %s\n", buf); | ||
| 409 | } | ||
| 410 | |||
| 411 | #endif /* 0 */ | ||
| 412 | |||
| 413 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) | 251 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) |
| 414 | { | 252 | { |
| 415 | struct gfs2_log_header *str = (struct gfs2_log_header *)buf; | 253 | struct gfs2_log_header *str = (struct gfs2_log_header *)buf; |
| @@ -422,31 +260,6 @@ void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) | |||
| 422 | lh->lh_hash = be32_to_cpu(str->lh_hash); | 260 | lh->lh_hash = be32_to_cpu(str->lh_hash); |
| 423 | } | 261 | } |
| 424 | 262 | ||
| 425 | #if 0 | ||
| 426 | |||
| 427 | void gfs2_log_header_print(struct gfs2_log_header *lh) | ||
| 428 | { | ||
| 429 | gfs2_meta_header_print(&lh->lh_header); | ||
| 430 | pv(lh, lh_sequence, "%llu"); | ||
| 431 | pv(lh, lh_flags, "0x%.8X"); | ||
| 432 | pv(lh, lh_tail, "%u"); | ||
| 433 | pv(lh, lh_blkno, "%u"); | ||
| 434 | pv(lh, lh_hash, "0x%.8X"); | ||
| 435 | } | ||
| 436 | |||
| 437 | void gfs2_log_descriptor_print(struct gfs2_log_descriptor *ld) | ||
| 438 | { | ||
| 439 | gfs2_meta_header_print(&ld->ld_header); | ||
| 440 | pv(ld, ld_type, "%u"); | ||
| 441 | pv(ld, ld_length, "%u"); | ||
| 442 | pv(ld, ld_data1, "%u"); | ||
| 443 | pv(ld, ld_data2, "%u"); | ||
| 444 | |||
| 445 | pa(ld, ld_reserved, 32); | ||
| 446 | } | ||
| 447 | |||
| 448 | #endif /* 0 */ | ||
| 449 | |||
| 450 | void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf) | 263 | void gfs2_inum_range_in(struct gfs2_inum_range *ir, char *buf) |
| 451 | { | 264 | { |
| 452 | struct gfs2_inum_range *str = (struct gfs2_inum_range *)buf; | 265 | struct gfs2_inum_range *str = (struct gfs2_inum_range *)buf; |
| @@ -463,14 +276,6 @@ void gfs2_inum_range_out(struct gfs2_inum_range *ir, char *buf) | |||
| 463 | str->ir_length = cpu_to_be64(ir->ir_length); | 276 | str->ir_length = cpu_to_be64(ir->ir_length); |
| 464 | } | 277 | } |
| 465 | 278 | ||
| 466 | #if 0 | ||
| 467 | void gfs2_inum_range_print(struct gfs2_inum_range *ir) | ||
| 468 | { | ||
| 469 | pv(ir, ir_start, "%llu"); | ||
| 470 | pv(ir, ir_length, "%llu"); | ||
| 471 | } | ||
| 472 | #endif /* 0 */ | ||
| 473 | |||
| 474 | void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf) | 279 | void gfs2_statfs_change_in(struct gfs2_statfs_change *sc, char *buf) |
| 475 | { | 280 | { |
| 476 | struct gfs2_statfs_change *str = (struct gfs2_statfs_change *)buf; | 281 | struct gfs2_statfs_change *str = (struct gfs2_statfs_change *)buf; |
| @@ -489,15 +294,6 @@ void gfs2_statfs_change_out(struct gfs2_statfs_change *sc, char *buf) | |||
| 489 | str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); | 294 | str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); |
| 490 | } | 295 | } |
| 491 | 296 | ||
| 492 | #if 0 | ||
| 493 | void gfs2_statfs_change_print(struct gfs2_statfs_change *sc) | ||
| 494 | { | ||
| 495 | pv(sc, sc_total, "%lld"); | ||
| 496 | pv(sc, sc_free, "%lld"); | ||
| 497 | pv(sc, sc_dinodes, "%lld"); | ||
| 498 | } | ||
| 499 | #endif /* 0 */ | ||
| 500 | |||
| 501 | void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf) | 297 | void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf) |
| 502 | { | 298 | { |
| 503 | struct gfs2_unlinked_tag *str = (struct gfs2_unlinked_tag *)buf; | 299 | struct gfs2_unlinked_tag *str = (struct gfs2_unlinked_tag *)buf; |
| @@ -515,16 +311,6 @@ void gfs2_unlinked_tag_out(struct gfs2_unlinked_tag *ut, char *buf) | |||
| 515 | str->__pad = 0; | 311 | str->__pad = 0; |
| 516 | } | 312 | } |
| 517 | 313 | ||
| 518 | #if 0 | ||
| 519 | |||
| 520 | void gfs2_unlinked_tag_print(struct gfs2_unlinked_tag *ut) | ||
| 521 | { | ||
| 522 | gfs2_inum_print(&ut->ut_inum); | ||
| 523 | pv(ut, ut_flags, "%u"); | ||
| 524 | } | ||
| 525 | |||
| 526 | #endif /* 0 */ | ||
| 527 | |||
| 528 | void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf) | 314 | void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf) |
| 529 | { | 315 | { |
| 530 | struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf; | 316 | struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf; |
| @@ -534,14 +320,3 @@ void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf) | |||
| 534 | qc->qc_id = be32_to_cpu(str->qc_id); | 320 | qc->qc_id = be32_to_cpu(str->qc_id); |
| 535 | } | 321 | } |
| 536 | 322 | ||
| 537 | #if 0 | ||
| 538 | |||
| 539 | void gfs2_quota_change_print(struct gfs2_quota_change *qc) | ||
| 540 | { | ||
| 541 | pv(qc, qc_change, "%lld"); | ||
| 542 | pv(qc, qc_flags, "0x%.8X"); | ||
| 543 | pv(qc, qc_id, "%u"); | ||
| 544 | } | ||
| 545 | |||
| 546 | #endif /* 0 */ | ||
| 547 | |||
