aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-10-13 20:11:25 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-11-30 10:32:50 -0500
commit3ca68df6ee61e1a2034f3307b9edb9b3d87e5ca1 (patch)
tree9172d33578fe98a6cba4c6819cd868be290fe0c1 /fs/gfs2
parent0215ffb08ce99e2bb59eca114a99499a4d06e704 (diff)
[GFS2] split gfs2_dinode into on-disk and host variants
The latter is used as part of gfs2-private part of struct inode. It actually stores a lot of fields differently; for now the declaration is just cloned, inode field is swtiched and changes propagated. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/inode.c4
-rw-r--r--fs/gfs2/ondisk.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index d470e5286ecd..191a3df93d67 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -48,7 +48,7 @@
48void gfs2_inode_attr_in(struct gfs2_inode *ip) 48void gfs2_inode_attr_in(struct gfs2_inode *ip)
49{ 49{
50 struct inode *inode = &ip->i_inode; 50 struct inode *inode = &ip->i_inode;
51 struct gfs2_dinode *di = &ip->i_di; 51 struct gfs2_dinode_host *di = &ip->i_di;
52 52
53 inode->i_ino = ip->i_num.no_addr; 53 inode->i_ino = ip->i_num.no_addr;
54 54
@@ -98,7 +98,7 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip)
98void gfs2_inode_attr_out(struct gfs2_inode *ip) 98void gfs2_inode_attr_out(struct gfs2_inode *ip)
99{ 99{
100 struct inode *inode = &ip->i_inode; 100 struct inode *inode = &ip->i_inode;
101 struct gfs2_dinode *di = &ip->i_di; 101 struct gfs2_dinode_host *di = &ip->i_di;
102 gfs2_assert_withdraw(GFS2_SB(inode), 102 gfs2_assert_withdraw(GFS2_SB(inode),
103 (di->di_mode & S_IFMT) == (inode->i_mode & S_IFMT)); 103 (di->di_mode & S_IFMT) == (inode->i_mode & S_IFMT));
104 di->di_mode = inode->i_mode; 104 di->di_mode = inode->i_mode;
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c
index 1025960b0e6e..52cb9a2dc058 100644
--- a/fs/gfs2/ondisk.c
+++ b/fs/gfs2/ondisk.c
@@ -153,7 +153,7 @@ void gfs2_quota_in(struct gfs2_quota *qu, const void *buf)
153 qu->qu_value = be64_to_cpu(str->qu_value); 153 qu->qu_value = be64_to_cpu(str->qu_value);
154} 154}
155 155
156void gfs2_dinode_in(struct gfs2_dinode *di, const void *buf) 156void gfs2_dinode_in(struct gfs2_dinode_host *di, const void *buf)
157{ 157{
158 const struct gfs2_dinode *str = buf; 158 const struct gfs2_dinode *str = buf;
159 159
@@ -187,7 +187,7 @@ void gfs2_dinode_in(struct gfs2_dinode *di, const void *buf)
187 187
188} 188}
189 189
190void gfs2_dinode_out(const struct gfs2_dinode *di, void *buf) 190void gfs2_dinode_out(const struct gfs2_dinode_host *di, void *buf)
191{ 191{
192 struct gfs2_dinode *str = buf; 192 struct gfs2_dinode *str = buf;
193 193
@@ -221,7 +221,7 @@ void gfs2_dinode_out(const struct gfs2_dinode *di, void *buf)
221 221
222} 222}
223 223
224void gfs2_dinode_print(const struct gfs2_dinode *di) 224void gfs2_dinode_print(const struct gfs2_dinode_host *di)
225{ 225{
226 gfs2_meta_header_print(&di->di_header); 226 gfs2_meta_header_print(&di->di_header);
227 gfs2_inum_print(&di->di_num); 227 gfs2_inum_print(&di->di_num);