Skip to content

Commit

Permalink
[GFS2] Change argument to gfs2_dinode_in
Browse files Browse the repository at this point in the history
This is a preliminary patch to enable the removal of fields
in gfs2_dinode_host which are duplicated in struct inode.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Nov 30, 2006
1 parent 539e5d6 commit 891ea14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip)
return -EIO;
}

gfs2_dinode_in(&ip->i_di, dibh->b_data);
gfs2_dinode_in(ip, dibh->b_data);

brelse(dibh);

Expand Down
4 changes: 2 additions & 2 deletions fs/gfs2/ondisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf)
qu->qu_value = be64_to_cpu(str->qu_value);
}

void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf)
void gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
{
struct gfs2_dinode_host *di = &ip->i_di;
const struct gfs2_dinode *str = buf;

gfs2_meta_header_in(&di->di_header, buf);
Expand Down Expand Up @@ -186,7 +187,6 @@ void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf)
di->di_entries = be32_to_cpu(str->di_entries);

di->di_eattr = be64_to_cpu(str->di_eattr);

}

void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf)
Expand Down
2 changes: 1 addition & 1 deletion include/linux/gfs2_ondisk.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf);
extern void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf);
extern void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf);
extern void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf);
extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf);
struct gfs2_inode;
extern void gfs2_dinode_in(struct gfs2_inode *ip, const void *buf);
extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, const void *buf);
extern void gfs2_ea_header_out(const struct gfs2_ea_header *ea, void *buf);
Expand Down

0 comments on commit 891ea14

Please sign in to comment.