[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>
This commit is contained in:
committed by
Steven Whitehouse
parent
0215ffb08c
commit
3ca68df6ee
@@ -48,7 +48,7 @@
|
||||
void gfs2_inode_attr_in(struct gfs2_inode *ip)
|
||||
{
|
||||
struct inode *inode = &ip->i_inode;
|
||||
struct gfs2_dinode *di = &ip->i_di;
|
||||
struct gfs2_dinode_host *di = &ip->i_di;
|
||||
|
||||
inode->i_ino = ip->i_num.no_addr;
|
||||
|
||||
@@ -98,7 +98,7 @@ void gfs2_inode_attr_in(struct gfs2_inode *ip)
|
||||
void gfs2_inode_attr_out(struct gfs2_inode *ip)
|
||||
{
|
||||
struct inode *inode = &ip->i_inode;
|
||||
struct gfs2_dinode *di = &ip->i_di;
|
||||
struct gfs2_dinode_host *di = &ip->i_di;
|
||||
gfs2_assert_withdraw(GFS2_SB(inode),
|
||||
(di->di_mode & S_IFMT) == (inode->i_mode & S_IFMT));
|
||||
di->di_mode = inode->i_mode;
|
||||
|
Reference in New Issue
Block a user