aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2006-01-18 05:40:17 -0500
committerSteven Whitehouse <steve@chygwyn.com>2006-01-18 05:40:17 -0500
commit3bd7662c4de28522d4709ab5a56033e3c33e1d4a (patch)
tree4a05ad4a90396d12f556e79dea817062908bd9ca /fs/gfs2
parent666a2c534cc6238932296a95c9e9c06ca3b73d97 (diff)
[GFS2] Remove unused code from ondisk.c/gfs2_ondisk.h
Removal of unused conversion functions from ondisk.c and gfs2_ondisk.h Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/ondisk.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index 2a1ef5aa7f0c..0d54e082e62b 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -120,24 +120,6 @@ void gfs2_sb_in(struct gfs2_sb *sb, char *buf)
120 memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN); 120 memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN);
121} 121}
122 122
123void gfs2_sb_out(struct gfs2_sb *sb, char *buf)
124{
125 struct gfs2_sb *str = (struct gfs2_sb *)buf;
126
127 gfs2_meta_header_out(&sb->sb_header, buf);
128
129 str->sb_fs_format = cpu_to_be32(sb->sb_fs_format);
130 str->sb_multihost_format = cpu_to_be32(sb->sb_multihost_format);
131 str->sb_bsize = cpu_to_be32(sb->sb_bsize);
132 str->sb_bsize_shift = cpu_to_be32(sb->sb_bsize_shift);
133
134 gfs2_inum_out(&sb->sb_master_dir, (char *)&str->sb_master_dir);
135 gfs2_inum_out(&sb->sb_root_dir, (char *)&str->sb_root_dir);
136
137 memcpy(str->sb_lockproto, sb->sb_lockproto, GFS2_LOCKNAME_LEN);
138 memcpy(str->sb_locktable, sb->sb_locktable, GFS2_LOCKNAME_LEN);
139}
140
141void gfs2_sb_print(struct gfs2_sb *sb) 123void gfs2_sb_print(struct gfs2_sb *sb)
142{ 124{
143 gfs2_meta_header_print(&sb->sb_header); 125 gfs2_meta_header_print(&sb->sb_header);
@@ -344,30 +326,6 @@ void gfs2_dinode_print(struct gfs2_dinode *di)
344 pv(di, di_eattr, "%llu"); 326 pv(di, di_eattr, "%llu");
345} 327}
346 328
347void gfs2_dirent_in(struct gfs2_dirent *de, char *buf)
348{
349 struct gfs2_dirent *str = (struct gfs2_dirent *)buf;
350
351 gfs2_inum_in(&de->de_inum, buf);
352 de->de_hash = be32_to_cpu(str->de_hash);
353 de->de_rec_len = be32_to_cpu(str->de_rec_len);
354 de->de_name_len = str->de_name_len;
355 de->de_type = str->de_type;
356}
357
358void gfs2_dirent_out(struct gfs2_dirent *de, char *buf)
359{
360 struct gfs2_dirent *str = (struct gfs2_dirent *)buf;
361
362 gfs2_inum_out(&de->de_inum, buf);
363 str->de_hash = cpu_to_be32(de->de_hash);
364 str->de_rec_len = cpu_to_be32(de->de_rec_len);
365 str->de_name_len = de->de_name_len;
366 str->de_type = de->de_type;
367 str->__pad1 = 0;
368 str->__pad2 = 0;
369}
370
371void gfs2_dirent_print(struct gfs2_dirent *de, char *name) 329void gfs2_dirent_print(struct gfs2_dirent *de, char *name)
372{ 330{
373 char buf[GFS2_FNAMESIZE + 1]; 331 char buf[GFS2_FNAMESIZE + 1];
@@ -394,18 +352,6 @@ void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf)
394 lf->lf_next = be64_to_cpu(str->lf_next); 352 lf->lf_next = be64_to_cpu(str->lf_next);
395} 353}
396 354
397void gfs2_leaf_out(struct gfs2_leaf *lf, char *buf)
398{
399 struct gfs2_leaf *str = (struct gfs2_leaf *)buf;
400
401 gfs2_meta_header_out(&lf->lf_header, buf);
402 str->lf_depth = cpu_to_be16(lf->lf_depth);
403 str->lf_entries = cpu_to_be16(lf->lf_entries);
404 str->lf_dirent_format = cpu_to_be32(lf->lf_dirent_format);
405 str->lf_next = cpu_to_be64(lf->lf_next);
406 memset(&str->lf_reserved, 0, sizeof(str->lf_reserved));
407}
408
409void gfs2_leaf_print(struct gfs2_leaf *lf) 355void gfs2_leaf_print(struct gfs2_leaf *lf)
410{ 356{
411 gfs2_meta_header_print(&lf->lf_header); 357 gfs2_meta_header_print(&lf->lf_header);
@@ -570,15 +516,6 @@ void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf)
570 qc->qc_id = be32_to_cpu(str->qc_id); 516 qc->qc_id = be32_to_cpu(str->qc_id);
571} 517}
572 518
573void gfs2_quota_change_out(struct gfs2_quota_change *qc, char *buf)
574{
575 struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf;
576
577 str->qc_change = cpu_to_be64(qc->qc_change);
578 str->qc_flags = cpu_to_be32(qc->qc_flags);
579 str->qc_id = cpu_to_be32(qc->qc_id);
580}
581
582void gfs2_quota_change_print(struct gfs2_quota_change *qc) 519void gfs2_quota_change_print(struct gfs2_quota_change *qc)
583{ 520{
584 pv(qc, qc_change, "%lld"); 521 pv(qc, qc_change, "%lld");