diff options
author | Christoph Hellwig <hch@lst.de> | 2008-11-27 22:23:39 -0500 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-11-30 19:37:35 -0500 |
commit | 81591fe2db19d0fc1ec2aaaa6a790a5ab97ac3ab (patch) | |
tree | 254b73b8f0b19bfbadda0e89021767f04dd20308 /fs/xfs/xfs_inode.h | |
parent | d42f08f61c5e7f0ed4c6b6df4c9987ddb85ec66e (diff) |
[XFS] kill xfs_dinode_core_t
Now that we have a separate xfs_icdinode_t for the in-core inode which
gets logged there is no need anymore for the xfs_dinode vs xfs_dinode_core
split - the fact that part of the structure gets logged through the inode
log item and a small part not can better be described in a comment.
All sizeof operations on the dinode_core either really wanted the
icdinode and are switched to that one, or had already added the size
of the agi unlinked list pointer. Later both will be replaced with
helpers once we get the larger CRC-enabled dinode.
Removing the data and attribute fork unions also has the advantage that
xfs_dinode.h doesn't need to pull in every header under the sun.
While we're at it also add some more comments describing the dinode
structure.
(First sent on October 7th)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index ea691c738f2e..705083a8ffaf 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -19,7 +19,6 @@ | |||
19 | #define __XFS_INODE_H__ | 19 | #define __XFS_INODE_H__ |
20 | 20 | ||
21 | struct xfs_dinode; | 21 | struct xfs_dinode; |
22 | struct xfs_dinode_core; | ||
23 | struct xfs_inode; | 22 | struct xfs_inode; |
24 | 23 | ||
25 | /* | 24 | /* |
@@ -112,7 +111,7 @@ typedef struct xfs_ictimestamp { | |||
112 | } xfs_ictimestamp_t; | 111 | } xfs_ictimestamp_t; |
113 | 112 | ||
114 | /* | 113 | /* |
115 | * NOTE: This structure must be kept identical to struct xfs_dinode_core | 114 | * NOTE: This structure must be kept identical to struct xfs_dinode |
116 | * in xfs_dinode.h except for the endianess annotations. | 115 | * in xfs_dinode.h except for the endianess annotations. |
117 | */ | 116 | */ |
118 | typedef struct xfs_icdinode { | 117 | typedef struct xfs_icdinode { |
@@ -553,8 +552,8 @@ int xfs_itobp(struct xfs_mount *, struct xfs_trans *, | |||
553 | struct xfs_inode *, struct xfs_dinode **, | 552 | struct xfs_inode *, struct xfs_dinode **, |
554 | struct xfs_buf **, xfs_daddr_t, uint, uint); | 553 | struct xfs_buf **, xfs_daddr_t, uint, uint); |
555 | void xfs_dinode_from_disk(struct xfs_icdinode *, | 554 | void xfs_dinode_from_disk(struct xfs_icdinode *, |
556 | struct xfs_dinode_core *); | 555 | struct xfs_dinode *); |
557 | void xfs_dinode_to_disk(struct xfs_dinode_core *, | 556 | void xfs_dinode_to_disk(struct xfs_dinode *, |
558 | struct xfs_icdinode *); | 557 | struct xfs_icdinode *); |
559 | void xfs_idestroy_fork(struct xfs_inode *, int); | 558 | void xfs_idestroy_fork(struct xfs_inode *, int); |
560 | void xfs_idata_realloc(struct xfs_inode *, int, int); | 559 | void xfs_idata_realloc(struct xfs_inode *, int, int); |