mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: move the di_flags2 field to struct xfs_inode
In preparation of removing the historic icinode struct, move the flags2 field into the containing xfs_inode structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
parent
db07349da2
commit
3e09ab8fdc
13 changed files with 49 additions and 52 deletions
|
@ -240,7 +240,7 @@ xfs_inode_from_disk(
|
|||
inode_set_iversion_queried(inode,
|
||||
be64_to_cpu(from->di_changecount));
|
||||
to->di_crtime = xfs_inode_from_disk_ts(from, from->di_crtime);
|
||||
to->di_flags2 = be64_to_cpu(from->di_flags2);
|
||||
ip->i_diflags2 = be64_to_cpu(from->di_flags2);
|
||||
ip->i_cowextsize = be32_to_cpu(from->di_cowextsize);
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,7 @@ xfs_inode_to_disk(
|
|||
to->di_version = 3;
|
||||
to->di_changecount = cpu_to_be64(inode_peek_iversion(inode));
|
||||
to->di_crtime = xfs_inode_to_disk_ts(ip, from->di_crtime);
|
||||
to->di_flags2 = cpu_to_be64(from->di_flags2);
|
||||
to->di_flags2 = cpu_to_be64(ip->i_diflags2);
|
||||
to->di_cowextsize = cpu_to_be32(ip->i_cowextsize);
|
||||
to->di_ino = cpu_to_be64(ip->i_ino);
|
||||
to->di_lsn = cpu_to_be64(lsn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue