diff options
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 0a9ad1c56a87..d5c3aa1b18ef 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -83,6 +83,16 @@ typedef struct xfs_ifork { | |||
83 | } xfs_ifork_t; | 83 | } xfs_ifork_t; |
84 | 84 | ||
85 | /* | 85 | /* |
86 | * Inode location information. Stored in the inode and passed to | ||
87 | * xfs_imap_to_bp() to get a buffer and dinode for a given inode. | ||
88 | */ | ||
89 | struct xfs_imap { | ||
90 | xfs_daddr_t im_blkno; /* starting BB of inode chunk */ | ||
91 | ushort im_len; /* length in BBs of inode chunk */ | ||
92 | ushort im_boffset; /* inode offset in block in bytes */ | ||
93 | }; | ||
94 | |||
95 | /* | ||
86 | * This is the xfs in-core inode structure. | 96 | * This is the xfs in-core inode structure. |
87 | * Most of the on-disk inode is embedded in the i_d field. | 97 | * Most of the on-disk inode is embedded in the i_d field. |
88 | * | 98 | * |
@@ -238,9 +248,7 @@ typedef struct xfs_inode { | |||
238 | 248 | ||
239 | /* Inode location stuff */ | 249 | /* Inode location stuff */ |
240 | xfs_ino_t i_ino; /* inode number (agno/agino)*/ | 250 | xfs_ino_t i_ino; /* inode number (agno/agino)*/ |
241 | xfs_daddr_t i_blkno; /* blkno of inode buffer */ | 251 | struct xfs_imap i_imap; /* location for xfs_imap() */ |
242 | ushort i_len; /* len of inode buffer */ | ||
243 | ushort i_boffset; /* off of inode in buffer */ | ||
244 | 252 | ||
245 | /* Extent information. */ | 253 | /* Extent information. */ |
246 | xfs_ifork_t *i_afp; /* attribute fork pointer */ | 254 | xfs_ifork_t *i_afp; /* attribute fork pointer */ |