diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-31 15:22:10 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:33:57 -0500 |
commit | 891ea14712da68e282de8583e5fa14f0d3f3731e (patch) | |
tree | 2550fb6f9cfe3fce0f1a27b7b4c781a67f2497e2 | |
parent | 539e5d6b7ae8612c0393fe940d2da5b591318d3d (diff) |
[GFS2] Change argument to gfs2_dinode_in
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>
-rw-r--r-- | fs/gfs2/inode.c | 2 | ||||
-rw-r--r-- | fs/gfs2/ondisk.c | 4 | ||||
-rw-r--r-- | include/linux/gfs2_ondisk.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index b861ddba8688..9875e9356cd3 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -229,7 +229,7 @@ int gfs2_inode_refresh(struct gfs2_inode *ip) | |||
229 | return -EIO; | 229 | return -EIO; |
230 | } | 230 | } |
231 | 231 | ||
232 | gfs2_dinode_in(&ip->i_di, dibh->b_data); | 232 | gfs2_dinode_in(ip, dibh->b_data); |
233 | 233 | ||
234 | brelse(dibh); | 234 | brelse(dibh); |
235 | 235 | ||
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index 2c50fa0261f5..edf87567bb2b 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -155,8 +155,9 @@ void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf) | |||
155 | qu->qu_value = be64_to_cpu(str->qu_value); | 155 | qu->qu_value = be64_to_cpu(str->qu_value); |
156 | } | 156 | } |
157 | 157 | ||
158 | void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf) | 158 | void gfs2_dinode_in(struct gfs2_inode *ip, const void *buf) |
159 | { | 159 | { |
160 | struct gfs2_dinode_host *di = &ip->i_di; | ||
160 | const struct gfs2_dinode *str = buf; | 161 | const struct gfs2_dinode *str = buf; |
161 | 162 | ||
162 | gfs2_meta_header_in(&di->di_header, buf); | 163 | gfs2_meta_header_in(&di->di_header, buf); |
@@ -186,7 +187,6 @@ void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf) | |||
186 | di->di_entries = be32_to_cpu(str->di_entries); | 187 | di->di_entries = be32_to_cpu(str->di_entries); |
187 | 188 | ||
188 | di->di_eattr = be64_to_cpu(str->di_eattr); | 189 | di->di_eattr = be64_to_cpu(str->di_eattr); |
189 | |||
190 | } | 190 | } |
191 | 191 | ||
192 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) | 192 | void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) |
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index 550effaf0c2b..08d8240ba533 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -534,8 +534,8 @@ extern void gfs2_rindex_out(const struct gfs2_rindex_host *ri, void *buf); | |||
534 | extern void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf); | 534 | extern void gfs2_rgrp_in(struct gfs2_rgrp_host *rg, const void *buf); |
535 | extern void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf); | 535 | extern void gfs2_rgrp_out(const struct gfs2_rgrp_host *rg, void *buf); |
536 | extern void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf); | 536 | extern void gfs2_quota_in(struct gfs2_quota_host *qu, const void *buf); |
537 | extern void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf); | ||
538 | struct gfs2_inode; | 537 | struct gfs2_inode; |
538 | extern void gfs2_dinode_in(struct gfs2_inode *ip, const void *buf); | ||
539 | extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); | 539 | extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf); |
540 | extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, const void *buf); | 540 | extern void gfs2_ea_header_in(struct gfs2_ea_header *ea, const void *buf); |
541 | extern void gfs2_ea_header_out(const struct gfs2_ea_header *ea, void *buf); | 541 | extern void gfs2_ea_header_out(const struct gfs2_ea_header *ea, void *buf); |