Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38584
b: refs/heads/master
c: 3bd7662
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Jan 18, 2006
1 parent 0be5bd4 commit a5c1c2a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 69 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 666a2c534cc6238932296a95c9e9c06ca3b73d97
refs/heads/master: 3bd7662c4de28522d4709ab5a56033e3c33e1d4a
63 changes: 0 additions & 63 deletions trunk/fs/gfs2/ondisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,6 @@ void gfs2_sb_in(struct gfs2_sb *sb, char *buf)
memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN);
}

void gfs2_sb_out(struct gfs2_sb *sb, char *buf)
{
struct gfs2_sb *str = (struct gfs2_sb *)buf;

gfs2_meta_header_out(&sb->sb_header, buf);

str->sb_fs_format = cpu_to_be32(sb->sb_fs_format);
str->sb_multihost_format = cpu_to_be32(sb->sb_multihost_format);
str->sb_bsize = cpu_to_be32(sb->sb_bsize);
str->sb_bsize_shift = cpu_to_be32(sb->sb_bsize_shift);

gfs2_inum_out(&sb->sb_master_dir, (char *)&str->sb_master_dir);
gfs2_inum_out(&sb->sb_root_dir, (char *)&str->sb_root_dir);

memcpy(str->sb_lockproto, sb->sb_lockproto, GFS2_LOCKNAME_LEN);
memcpy(str->sb_locktable, sb->sb_locktable, GFS2_LOCKNAME_LEN);
}

void gfs2_sb_print(struct gfs2_sb *sb)
{
gfs2_meta_header_print(&sb->sb_header);
Expand Down Expand Up @@ -344,30 +326,6 @@ void gfs2_dinode_print(struct gfs2_dinode *di)
pv(di, di_eattr, "%llu");
}

void gfs2_dirent_in(struct gfs2_dirent *de, char *buf)
{
struct gfs2_dirent *str = (struct gfs2_dirent *)buf;

gfs2_inum_in(&de->de_inum, buf);
de->de_hash = be32_to_cpu(str->de_hash);
de->de_rec_len = be32_to_cpu(str->de_rec_len);
de->de_name_len = str->de_name_len;
de->de_type = str->de_type;
}

void gfs2_dirent_out(struct gfs2_dirent *de, char *buf)
{
struct gfs2_dirent *str = (struct gfs2_dirent *)buf;

gfs2_inum_out(&de->de_inum, buf);
str->de_hash = cpu_to_be32(de->de_hash);
str->de_rec_len = cpu_to_be32(de->de_rec_len);
str->de_name_len = de->de_name_len;
str->de_type = de->de_type;
str->__pad1 = 0;
str->__pad2 = 0;
}

void gfs2_dirent_print(struct gfs2_dirent *de, char *name)
{
char buf[GFS2_FNAMESIZE + 1];
Expand All @@ -394,18 +352,6 @@ void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf)
lf->lf_next = be64_to_cpu(str->lf_next);
}

void gfs2_leaf_out(struct gfs2_leaf *lf, char *buf)
{
struct gfs2_leaf *str = (struct gfs2_leaf *)buf;

gfs2_meta_header_out(&lf->lf_header, buf);
str->lf_depth = cpu_to_be16(lf->lf_depth);
str->lf_entries = cpu_to_be16(lf->lf_entries);
str->lf_dirent_format = cpu_to_be32(lf->lf_dirent_format);
str->lf_next = cpu_to_be64(lf->lf_next);
memset(&str->lf_reserved, 0, sizeof(str->lf_reserved));
}

void gfs2_leaf_print(struct gfs2_leaf *lf)
{
gfs2_meta_header_print(&lf->lf_header);
Expand Down Expand Up @@ -570,15 +516,6 @@ void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf)
qc->qc_id = be32_to_cpu(str->qc_id);
}

void gfs2_quota_change_out(struct gfs2_quota_change *qc, char *buf)
{
struct gfs2_quota_change *str = (struct gfs2_quota_change *)buf;

str->qc_change = cpu_to_be64(qc->qc_change);
str->qc_flags = cpu_to_be32(qc->qc_flags);
str->qc_id = cpu_to_be32(qc->qc_id);
}

void gfs2_quota_change_print(struct gfs2_quota_change *qc)
{
pv(qc, qc_change, "%lld");
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/linux/gfs2_ondisk.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ extern void gfs2_inum_out(struct gfs2_inum *no, char *buf);
extern void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf);
extern void gfs2_meta_header_out(struct gfs2_meta_header *mh, char *buf);
extern void gfs2_sb_in(struct gfs2_sb *sb, char *buf);
extern void gfs2_sb_out(struct gfs2_sb *sb, char *buf);
extern void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf);
extern void gfs2_rindex_out(struct gfs2_rindex *ri, char *buf);
extern void gfs2_rgrp_in(struct gfs2_rgrp *rg, char *buf);
Expand All @@ -416,10 +415,7 @@ extern void gfs2_quota_in(struct gfs2_quota *qu, char *buf);
extern void gfs2_quota_out(struct gfs2_quota *qu, char *buf);
extern void gfs2_dinode_in(struct gfs2_dinode *di, char *buf);
extern void gfs2_dinode_out(struct gfs2_dinode *di, char *buf);
extern void gfs2_dirent_in(struct gfs2_dirent *de, char *buf);
extern void gfs2_dirent_out(struct gfs2_dirent *de, char *buf);
extern void gfs2_leaf_in(struct gfs2_leaf *lf, char *buf);
extern void gfs2_leaf_out(struct gfs2_leaf *lf, char *buf);
extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, char *buf);
extern void gfs2_ea_header_out(struct gfs2_ea_header *ea, char *buf);
extern void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf);
Expand All @@ -430,7 +426,6 @@ extern void gfs2_statfs_change_out(struct gfs2_statfs_change *sc, char *buf);
extern void gfs2_unlinked_tag_in(struct gfs2_unlinked_tag *ut, char *buf);
extern void gfs2_unlinked_tag_out(struct gfs2_unlinked_tag *ut, char *buf);
extern void gfs2_quota_change_in(struct gfs2_quota_change *qc, char *buf);
extern void gfs2_quota_change_out(struct gfs2_quota_change *qc, char *buf);

/* Printing functions */

Expand Down

0 comments on commit a5c1c2a

Please sign in to comment.