diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-10-22 19:36:05 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-10-23 15:11:30 -0400 |
commit | 70a9883c5f34b215b8a77665cefd0398edc5a9ef (patch) | |
tree | 482f6d16e0d4ca17a974320e07f0e1fa20bca334 | |
parent | 865e9446b4c17f78be0b1387426394b6bfc278f3 (diff) |
xfs: create a shared header file for format-related information
All of the buffer operations structures are needed to be exported
for xfs_db, so move them all to a common location rather than
spreading them all over the place. They are verifying the on-disk
format, so while xfs_format.h might be a good place, it is not part
of the on disk format.
Hence we need to create a new header file that we centralise these
related definitions. Start by moving the bffer operations
structures, and then also move all the other definitions that have
crept into xfs_log_format.h and xfs_format.h as there was no other
shared header file to put them in.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
54 files changed, 289 insertions, 232 deletions
diff --git a/fs/xfs/xfs_ag.h b/fs/xfs/xfs_ag.h index 1cb740afd674..3fc109819c34 100644 --- a/fs/xfs/xfs_ag.h +++ b/fs/xfs/xfs_ag.h | |||
@@ -128,8 +128,6 @@ typedef struct xfs_agf { | |||
128 | extern int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp, | 128 | extern int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp, |
129 | xfs_agnumber_t agno, int flags, struct xfs_buf **bpp); | 129 | xfs_agnumber_t agno, int flags, struct xfs_buf **bpp); |
130 | 130 | ||
131 | extern const struct xfs_buf_ops xfs_agf_buf_ops; | ||
132 | |||
133 | /* | 131 | /* |
134 | * Size of the unlinked inode hash table in the agi. | 132 | * Size of the unlinked inode hash table in the agi. |
135 | */ | 133 | */ |
@@ -191,8 +189,6 @@ typedef struct xfs_agi { | |||
191 | extern int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp, | 189 | extern int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp, |
192 | xfs_agnumber_t agno, struct xfs_buf **bpp); | 190 | xfs_agnumber_t agno, struct xfs_buf **bpp); |
193 | 191 | ||
194 | extern const struct xfs_buf_ops xfs_agi_buf_ops; | ||
195 | |||
196 | /* | 192 | /* |
197 | * The third a.g. block contains the a.g. freelist, an array | 193 | * The third a.g. block contains the a.g. freelist, an array |
198 | * of block pointers to blocks owned by the allocation btree code. | 194 | * of block pointers to blocks owned by the allocation btree code. |
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index 5a1393f5e020..2bfca06e0ee7 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c | |||
@@ -17,7 +17,8 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_alloc.h b/fs/xfs/xfs_alloc.h index 99d0a6101558..feacb061bab7 100644 --- a/fs/xfs/xfs_alloc.h +++ b/fs/xfs/xfs_alloc.h | |||
@@ -231,7 +231,4 @@ xfs_alloc_get_rec( | |||
231 | xfs_extlen_t *len, /* output: length of extent */ | 231 | xfs_extlen_t *len, /* output: length of extent */ |
232 | int *stat); /* output: success/failure */ | 232 | int *stat); /* output: success/failure */ |
233 | 233 | ||
234 | extern const struct xfs_buf_ops xfs_agf_buf_ops; | ||
235 | extern const struct xfs_buf_ops xfs_agfl_buf_ops; | ||
236 | |||
237 | #endif /* __XFS_ALLOC_H__ */ | 234 | #endif /* __XFS_ALLOC_H__ */ |
diff --git a/fs/xfs/xfs_alloc_btree.h b/fs/xfs/xfs_alloc_btree.h index e3a3f7424192..72676c36b1bb 100644 --- a/fs/xfs/xfs_alloc_btree.h +++ b/fs/xfs/xfs_alloc_btree.h | |||
@@ -95,6 +95,4 @@ extern struct xfs_btree_cur *xfs_allocbt_init_cursor(struct xfs_mount *, | |||
95 | xfs_agnumber_t, xfs_btnum_t); | 95 | xfs_agnumber_t, xfs_btnum_t); |
96 | extern int xfs_allocbt_maxrecs(struct xfs_mount *, int, int); | 96 | extern int xfs_allocbt_maxrecs(struct xfs_mount *, int, int); |
97 | 97 | ||
98 | extern const struct xfs_buf_ops xfs_allocbt_buf_ops; | ||
99 | |||
100 | #endif /* __XFS_ALLOC_BTREE_H__ */ | 98 | #endif /* __XFS_ALLOC_BTREE_H__ */ |
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index f3f95f094af8..2c61e9622f57 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
@@ -16,9 +16,11 @@ | |||
16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 16 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_log.h" | 19 | #include "xfs_format.h" |
20 | #include "xfs_shared.h" | ||
20 | #include "xfs_sb.h" | 21 | #include "xfs_sb.h" |
21 | #include "xfs_ag.h" | 22 | #include "xfs_ag.h" |
23 | #include "xfs_log.h" | ||
22 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
23 | #include "xfs_mount.h" | 25 | #include "xfs_mount.h" |
24 | #include "xfs_bmap_btree.h" | 26 | #include "xfs_bmap_btree.h" |
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c index ddcf2267ffa6..21af043bbee8 100644 --- a/fs/xfs/xfs_attr.c +++ b/fs/xfs/xfs_attr.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_attr_inactive.c b/fs/xfs/xfs_attr_inactive.c index bb24b07cbedb..e90a8760bc3d 100644 --- a/fs/xfs/xfs_attr_inactive.c +++ b/fs/xfs/xfs_attr_inactive.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_bit.h" | 23 | #include "xfs_bit.h" |
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_attr_leaf.h b/fs/xfs/xfs_attr_leaf.h index c1022138c7e6..da34e64b5323 100644 --- a/fs/xfs/xfs_attr_leaf.h +++ b/fs/xfs/xfs_attr_leaf.h | |||
@@ -336,6 +336,4 @@ void xfs_attr3_leaf_hdr_from_disk(struct xfs_attr3_icleaf_hdr *to, | |||
336 | void xfs_attr3_leaf_hdr_to_disk(struct xfs_attr_leafblock *to, | 336 | void xfs_attr3_leaf_hdr_to_disk(struct xfs_attr_leafblock *to, |
337 | struct xfs_attr3_icleaf_hdr *from); | 337 | struct xfs_attr3_icleaf_hdr *from); |
338 | 338 | ||
339 | extern const struct xfs_buf_ops xfs_attr3_leaf_buf_ops; | ||
340 | |||
341 | #endif /* __XFS_ATTR_LEAF_H__ */ | 339 | #endif /* __XFS_ATTR_LEAF_H__ */ |
diff --git a/fs/xfs/xfs_attr_remote.h b/fs/xfs/xfs_attr_remote.h index 92a8fd7977cc..b3e1e1bdfb3b 100644 --- a/fs/xfs/xfs_attr_remote.h +++ b/fs/xfs/xfs_attr_remote.h | |||
@@ -45,8 +45,6 @@ struct xfs_attr3_rmt_hdr { | |||
45 | ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ | 45 | ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ |
46 | sizeof(struct xfs_attr3_rmt_hdr) : 0)) | 46 | sizeof(struct xfs_attr3_rmt_hdr) : 0)) |
47 | 47 | ||
48 | extern const struct xfs_buf_ops xfs_attr3_rmt_buf_ops; | ||
49 | |||
50 | int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen); | 48 | int xfs_attr3_rmt_blocks(struct xfs_mount *mp, int attrlen); |
51 | 49 | ||
52 | int xfs_attr_rmtval_get(struct xfs_da_args *args); | 50 | int xfs_attr_rmtval_get(struct xfs_da_args *args); |
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index e6b42026f9d4..6870aad5d815 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_inum.h" | 24 | #include "xfs_inum.h" |
diff --git a/fs/xfs/xfs_bmap_btree.h b/fs/xfs/xfs_bmap_btree.h index e367461a638e..e2b0768a89ba 100644 --- a/fs/xfs/xfs_bmap_btree.h +++ b/fs/xfs/xfs_bmap_btree.h | |||
@@ -243,6 +243,4 @@ extern int xfs_bmbt_change_owner(struct xfs_trans *tp, struct xfs_inode *ip, | |||
243 | extern struct xfs_btree_cur *xfs_bmbt_init_cursor(struct xfs_mount *, | 243 | extern struct xfs_btree_cur *xfs_bmbt_init_cursor(struct xfs_mount *, |
244 | struct xfs_trans *, struct xfs_inode *, int); | 244 | struct xfs_trans *, struct xfs_inode *, int); |
245 | 245 | ||
246 | extern const struct xfs_buf_ops xfs_bmbt_buf_ops; | ||
247 | |||
248 | #endif /* __XFS_BMAP_BTREE_H__ */ | 246 | #endif /* __XFS_BMAP_BTREE_H__ */ |
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 45cf5a2fd1bf..4f246628a900 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_bit.h" | 23 | #include "xfs_bit.h" |
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_inum.h" | 25 | #include "xfs_inum.h" |
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c index 5690e102243d..1a297e26e26c 100644 --- a/fs/xfs/xfs_btree.c +++ b/fs/xfs/xfs_btree.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_bit.h" | 21 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 20bf8e8002d6..ac51abeb4782 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -18,7 +18,8 @@ | |||
18 | */ | 18 | */ |
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_types.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_bit.h" | 23 | #include "xfs_bit.h" |
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_da_btree.h b/fs/xfs/xfs_da_btree.h index b1f267995dea..a762cfa4097d 100644 --- a/fs/xfs/xfs_da_btree.h +++ b/fs/xfs/xfs_da_btree.h | |||
@@ -309,8 +309,6 @@ int xfs_da3_node_read(struct xfs_trans *tp, struct xfs_inode *dp, | |||
309 | xfs_dablk_t bno, xfs_daddr_t mappedbno, | 309 | xfs_dablk_t bno, xfs_daddr_t mappedbno, |
310 | struct xfs_buf **bpp, int which_fork); | 310 | struct xfs_buf **bpp, int which_fork); |
311 | 311 | ||
312 | extern const struct xfs_buf_ops xfs_da3_node_buf_ops; | ||
313 | |||
314 | /* | 312 | /* |
315 | * Utility routines. | 313 | * Utility routines. |
316 | */ | 314 | */ |
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 1ee776d477c3..8b1d2c0a9054 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_dquot.h b/fs/xfs/xfs_dquot.h index 55abbca2883d..d22ed0053c32 100644 --- a/fs/xfs/xfs_dquot.h +++ b/fs/xfs/xfs_dquot.h | |||
@@ -172,6 +172,4 @@ static inline struct xfs_dquot *xfs_qm_dqhold(struct xfs_dquot *dqp) | |||
172 | return dqp; | 172 | return dqp; |
173 | } | 173 | } |
174 | 174 | ||
175 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; | ||
176 | |||
177 | #endif /* __XFS_DQUOT_H__ */ | 175 | #endif /* __XFS_DQUOT_H__ */ |
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c index e43708e2f080..74828a7895eb 100644 --- a/fs/xfs/xfs_extent_busy.c +++ b/fs/xfs/xfs_extent_busy.c | |||
@@ -19,7 +19,8 @@ | |||
19 | */ | 19 | */ |
20 | #include "xfs.h" | 20 | #include "xfs.h" |
21 | #include "xfs_fs.h" | 21 | #include "xfs_fs.h" |
22 | #include "xfs_types.h" | 22 | #include "xfs_format.h" |
23 | #include "xfs_shared.h" | ||
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |
25 | #include "xfs_sb.h" | 26 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index c8a75a75e25a..57d95b2f8692 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_shared.h" | ||
20 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
21 | #include "xfs_sb.h" | 22 | #include "xfs_sb.h" |
22 | #include "xfs_ag.h" | 23 | #include "xfs_ag.h" |
diff --git a/fs/xfs/xfs_format.h b/fs/xfs/xfs_format.h index 35c08ff54ca0..a790428f3bf4 100644 --- a/fs/xfs/xfs_format.h +++ b/fs/xfs/xfs_format.h | |||
@@ -156,14 +156,4 @@ struct xfs_dsymlink_hdr { | |||
156 | ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ | 156 | ((bufsize) - (xfs_sb_version_hascrc(&(mp)->m_sb) ? \ |
157 | sizeof(struct xfs_dsymlink_hdr) : 0)) | 157 | sizeof(struct xfs_dsymlink_hdr) : 0)) |
158 | 158 | ||
159 | int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen); | ||
160 | int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, | ||
161 | uint32_t size, struct xfs_buf *bp); | ||
162 | bool xfs_symlink_hdr_ok(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, | ||
163 | uint32_t size, struct xfs_buf *bp); | ||
164 | void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp, | ||
165 | struct xfs_inode *ip, struct xfs_ifork *ifp); | ||
166 | |||
167 | extern const struct xfs_buf_ops xfs_symlink_buf_ops; | ||
168 | |||
169 | #endif /* __XFS_FORMAT_H__ */ | 159 | #endif /* __XFS_FORMAT_H__ */ |
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 76c7b2b4fa8d..e5d2c43c65c4 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c | |||
@@ -18,6 +18,8 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_types.h" |
21 | #include "xfs_format.h" | ||
22 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index ccf2fb143962..8530cabf128d 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
@@ -17,7 +17,8 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_inum.h" | 24 | #include "xfs_inum.h" |
diff --git a/fs/xfs/xfs_ialloc.h b/fs/xfs/xfs_ialloc.h index 68c07320f096..155779803d67 100644 --- a/fs/xfs/xfs_ialloc.h +++ b/fs/xfs/xfs_ialloc.h | |||
@@ -158,6 +158,4 @@ int xfs_ialloc_inode_init(struct xfs_mount *mp, struct xfs_trans *tp, | |||
158 | xfs_agnumber_t agno, xfs_agblock_t agbno, | 158 | xfs_agnumber_t agno, xfs_agblock_t agbno, |
159 | xfs_agblock_t length, unsigned int gen); | 159 | xfs_agblock_t length, unsigned int gen); |
160 | 160 | ||
161 | extern const struct xfs_buf_ops xfs_agi_buf_ops; | ||
162 | |||
163 | #endif /* __XFS_IALLOC_H__ */ | 161 | #endif /* __XFS_IALLOC_H__ */ |
diff --git a/fs/xfs/xfs_ialloc_btree.h b/fs/xfs/xfs_ialloc_btree.h index 3ac36b7642e9..cfbfe461abbc 100644 --- a/fs/xfs/xfs_ialloc_btree.h +++ b/fs/xfs/xfs_ialloc_btree.h | |||
@@ -110,6 +110,4 @@ extern struct xfs_btree_cur *xfs_inobt_init_cursor(struct xfs_mount *, | |||
110 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); | 110 | struct xfs_trans *, struct xfs_buf *, xfs_agnumber_t); |
111 | extern int xfs_inobt_maxrecs(struct xfs_mount *, int, int); | 111 | extern int xfs_inobt_maxrecs(struct xfs_mount *, int, int); |
112 | 112 | ||
113 | extern const struct xfs_buf_ops xfs_inobt_buf_ops; | ||
114 | |||
115 | #endif /* __XFS_IALLOC_BTREE_H__ */ | 113 | #endif /* __XFS_IALLOC_BTREE_H__ */ |
diff --git a/fs/xfs/xfs_icreate_item.c b/fs/xfs/xfs_icreate_item.c index 5a5a593994d4..df8baf38eb85 100644 --- a/fs/xfs/xfs_icreate_item.c +++ b/fs/xfs/xfs_icreate_item.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_bit.h" | 21 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 5fce7261a64b..1aaef689794d 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include "xfs.h" | 20 | #include "xfs.h" |
21 | #include "xfs_fs.h" | 21 | #include "xfs_fs.h" |
22 | #include "xfs_format.h" | 22 | #include "xfs_format.h" |
23 | #include "xfs_shared.h" | ||
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_inum.h" | 25 | #include "xfs_inum.h" |
25 | #include "xfs_trans.h" | 26 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_inode_buf.c b/fs/xfs/xfs_inode_buf.c index 63382d37f565..65fa56edecf3 100644 --- a/fs/xfs/xfs_inode_buf.c +++ b/fs/xfs/xfs_inode_buf.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_inode_buf.h b/fs/xfs/xfs_inode_buf.h index abba0ae8cf2d..9308c47f2a52 100644 --- a/fs/xfs/xfs_inode_buf.h +++ b/fs/xfs/xfs_inode_buf.h | |||
@@ -47,7 +47,4 @@ void xfs_inobp_check(struct xfs_mount *, struct xfs_buf *); | |||
47 | #define xfs_inobp_check(mp, bp) | 47 | #define xfs_inobp_check(mp, bp) |
48 | #endif /* DEBUG */ | 48 | #endif /* DEBUG */ |
49 | 49 | ||
50 | extern const struct xfs_buf_ops xfs_inode_buf_ops; | ||
51 | extern const struct xfs_buf_ops xfs_inode_buf_ra_ops; | ||
52 | |||
53 | #endif /* __XFS_INODE_BUF_H__ */ | 50 | #endif /* __XFS_INODE_BUF_H__ */ |
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index e448d735346b..c6c62d12a934 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 338b33263c56..d8fb6dfe75ed 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c index 52ecd1ccec9f..24fe333b8c41 100644 --- a/fs/xfs/xfs_iops.c +++ b/fs/xfs/xfs_iops.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_acl.h" | 22 | #include "xfs_acl.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index 084b3e1741fd..4f50e637f33b 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_inum.h" | 22 | #include "xfs_inum.h" |
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 0461f0872244..fbaf70af3d61 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index da8524e779b6..a844f77d2cc3 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_trans_priv.h" | 23 | #include "xfs_trans_priv.h" |
diff --git a/fs/xfs/xfs_log_format.h b/fs/xfs/xfs_log_format.h index ca7e28a8ed31..f0969c77bdbe 100644 --- a/fs/xfs/xfs_log_format.h +++ b/fs/xfs/xfs_log_format.h | |||
@@ -234,178 +234,6 @@ typedef struct xfs_trans_header { | |||
234 | { XFS_LI_ICREATE, "XFS_LI_ICREATE" } | 234 | { XFS_LI_ICREATE, "XFS_LI_ICREATE" } |
235 | 235 | ||
236 | /* | 236 | /* |
237 | * Transaction types. Used to distinguish types of buffers. | ||
238 | */ | ||
239 | #define XFS_TRANS_SETATTR_NOT_SIZE 1 | ||
240 | #define XFS_TRANS_SETATTR_SIZE 2 | ||
241 | #define XFS_TRANS_INACTIVE 3 | ||
242 | #define XFS_TRANS_CREATE 4 | ||
243 | #define XFS_TRANS_CREATE_TRUNC 5 | ||
244 | #define XFS_TRANS_TRUNCATE_FILE 6 | ||
245 | #define XFS_TRANS_REMOVE 7 | ||
246 | #define XFS_TRANS_LINK 8 | ||
247 | #define XFS_TRANS_RENAME 9 | ||
248 | #define XFS_TRANS_MKDIR 10 | ||
249 | #define XFS_TRANS_RMDIR 11 | ||
250 | #define XFS_TRANS_SYMLINK 12 | ||
251 | #define XFS_TRANS_SET_DMATTRS 13 | ||
252 | #define XFS_TRANS_GROWFS 14 | ||
253 | #define XFS_TRANS_STRAT_WRITE 15 | ||
254 | #define XFS_TRANS_DIOSTRAT 16 | ||
255 | /* 17 was XFS_TRANS_WRITE_SYNC */ | ||
256 | #define XFS_TRANS_WRITEID 18 | ||
257 | #define XFS_TRANS_ADDAFORK 19 | ||
258 | #define XFS_TRANS_ATTRINVAL 20 | ||
259 | #define XFS_TRANS_ATRUNCATE 21 | ||
260 | #define XFS_TRANS_ATTR_SET 22 | ||
261 | #define XFS_TRANS_ATTR_RM 23 | ||
262 | #define XFS_TRANS_ATTR_FLAG 24 | ||
263 | #define XFS_TRANS_CLEAR_AGI_BUCKET 25 | ||
264 | #define XFS_TRANS_QM_SBCHANGE 26 | ||
265 | /* | ||
266 | * Dummy entries since we use the transaction type to index into the | ||
267 | * trans_type[] in xlog_recover_print_trans_head() | ||
268 | */ | ||
269 | #define XFS_TRANS_DUMMY1 27 | ||
270 | #define XFS_TRANS_DUMMY2 28 | ||
271 | #define XFS_TRANS_QM_QUOTAOFF 29 | ||
272 | #define XFS_TRANS_QM_DQALLOC 30 | ||
273 | #define XFS_TRANS_QM_SETQLIM 31 | ||
274 | #define XFS_TRANS_QM_DQCLUSTER 32 | ||
275 | #define XFS_TRANS_QM_QINOCREATE 33 | ||
276 | #define XFS_TRANS_QM_QUOTAOFF_END 34 | ||
277 | #define XFS_TRANS_SB_UNIT 35 | ||
278 | #define XFS_TRANS_FSYNC_TS 36 | ||
279 | #define XFS_TRANS_GROWFSRT_ALLOC 37 | ||
280 | #define XFS_TRANS_GROWFSRT_ZERO 38 | ||
281 | #define XFS_TRANS_GROWFSRT_FREE 39 | ||
282 | #define XFS_TRANS_SWAPEXT 40 | ||
283 | #define XFS_TRANS_SB_COUNT 41 | ||
284 | #define XFS_TRANS_CHECKPOINT 42 | ||
285 | #define XFS_TRANS_ICREATE 43 | ||
286 | #define XFS_TRANS_TYPE_MAX 43 | ||
287 | /* new transaction types need to be reflected in xfs_logprint(8) */ | ||
288 | |||
289 | #define XFS_TRANS_TYPES \ | ||
290 | { XFS_TRANS_SETATTR_NOT_SIZE, "SETATTR_NOT_SIZE" }, \ | ||
291 | { XFS_TRANS_SETATTR_SIZE, "SETATTR_SIZE" }, \ | ||
292 | { XFS_TRANS_INACTIVE, "INACTIVE" }, \ | ||
293 | { XFS_TRANS_CREATE, "CREATE" }, \ | ||
294 | { XFS_TRANS_CREATE_TRUNC, "CREATE_TRUNC" }, \ | ||
295 | { XFS_TRANS_TRUNCATE_FILE, "TRUNCATE_FILE" }, \ | ||
296 | { XFS_TRANS_REMOVE, "REMOVE" }, \ | ||
297 | { XFS_TRANS_LINK, "LINK" }, \ | ||
298 | { XFS_TRANS_RENAME, "RENAME" }, \ | ||
299 | { XFS_TRANS_MKDIR, "MKDIR" }, \ | ||
300 | { XFS_TRANS_RMDIR, "RMDIR" }, \ | ||
301 | { XFS_TRANS_SYMLINK, "SYMLINK" }, \ | ||
302 | { XFS_TRANS_SET_DMATTRS, "SET_DMATTRS" }, \ | ||
303 | { XFS_TRANS_GROWFS, "GROWFS" }, \ | ||
304 | { XFS_TRANS_STRAT_WRITE, "STRAT_WRITE" }, \ | ||
305 | { XFS_TRANS_DIOSTRAT, "DIOSTRAT" }, \ | ||
306 | { XFS_TRANS_WRITEID, "WRITEID" }, \ | ||
307 | { XFS_TRANS_ADDAFORK, "ADDAFORK" }, \ | ||
308 | { XFS_TRANS_ATTRINVAL, "ATTRINVAL" }, \ | ||
309 | { XFS_TRANS_ATRUNCATE, "ATRUNCATE" }, \ | ||
310 | { XFS_TRANS_ATTR_SET, "ATTR_SET" }, \ | ||
311 | { XFS_TRANS_ATTR_RM, "ATTR_RM" }, \ | ||
312 | { XFS_TRANS_ATTR_FLAG, "ATTR_FLAG" }, \ | ||
313 | { XFS_TRANS_CLEAR_AGI_BUCKET, "CLEAR_AGI_BUCKET" }, \ | ||
314 | { XFS_TRANS_QM_SBCHANGE, "QM_SBCHANGE" }, \ | ||
315 | { XFS_TRANS_QM_QUOTAOFF, "QM_QUOTAOFF" }, \ | ||
316 | { XFS_TRANS_QM_DQALLOC, "QM_DQALLOC" }, \ | ||
317 | { XFS_TRANS_QM_SETQLIM, "QM_SETQLIM" }, \ | ||
318 | { XFS_TRANS_QM_DQCLUSTER, "QM_DQCLUSTER" }, \ | ||
319 | { XFS_TRANS_QM_QINOCREATE, "QM_QINOCREATE" }, \ | ||
320 | { XFS_TRANS_QM_QUOTAOFF_END, "QM_QOFF_END" }, \ | ||
321 | { XFS_TRANS_SB_UNIT, "SB_UNIT" }, \ | ||
322 | { XFS_TRANS_FSYNC_TS, "FSYNC_TS" }, \ | ||
323 | { XFS_TRANS_GROWFSRT_ALLOC, "GROWFSRT_ALLOC" }, \ | ||
324 | { XFS_TRANS_GROWFSRT_ZERO, "GROWFSRT_ZERO" }, \ | ||
325 | { XFS_TRANS_GROWFSRT_FREE, "GROWFSRT_FREE" }, \ | ||
326 | { XFS_TRANS_SWAPEXT, "SWAPEXT" }, \ | ||
327 | { XFS_TRANS_SB_COUNT, "SB_COUNT" }, \ | ||
328 | { XFS_TRANS_CHECKPOINT, "CHECKPOINT" }, \ | ||
329 | { XFS_TRANS_DUMMY1, "DUMMY1" }, \ | ||
330 | { XFS_TRANS_DUMMY2, "DUMMY2" }, \ | ||
331 | { XLOG_UNMOUNT_REC_TYPE, "UNMOUNT" } | ||
332 | |||
333 | /* | ||
334 | * This structure is used to track log items associated with | ||
335 | * a transaction. It points to the log item and keeps some | ||
336 | * flags to track the state of the log item. It also tracks | ||
337 | * the amount of space needed to log the item it describes | ||
338 | * once we get to commit processing (see xfs_trans_commit()). | ||
339 | */ | ||
340 | struct xfs_log_item_desc { | ||
341 | struct xfs_log_item *lid_item; | ||
342 | struct list_head lid_trans; | ||
343 | unsigned char lid_flags; | ||
344 | }; | ||
345 | |||
346 | #define XFS_LID_DIRTY 0x1 | ||
347 | |||
348 | /* | ||
349 | * Values for t_flags. | ||
350 | */ | ||
351 | #define XFS_TRANS_DIRTY 0x01 /* something needs to be logged */ | ||
352 | #define XFS_TRANS_SB_DIRTY 0x02 /* superblock is modified */ | ||
353 | #define XFS_TRANS_PERM_LOG_RES 0x04 /* xact took a permanent log res */ | ||
354 | #define XFS_TRANS_SYNC 0x08 /* make commit synchronous */ | ||
355 | #define XFS_TRANS_DQ_DIRTY 0x10 /* at least one dquot in trx dirty */ | ||
356 | #define XFS_TRANS_RESERVE 0x20 /* OK to use reserved data blocks */ | ||
357 | #define XFS_TRANS_FREEZE_PROT 0x40 /* Transaction has elevated writer | ||
358 | count in superblock */ | ||
359 | |||
360 | /* | ||
361 | * Values for call flags parameter. | ||
362 | */ | ||
363 | #define XFS_TRANS_RELEASE_LOG_RES 0x4 | ||
364 | #define XFS_TRANS_ABORT 0x8 | ||
365 | |||
366 | /* | ||
367 | * Field values for xfs_trans_mod_sb. | ||
368 | */ | ||
369 | #define XFS_TRANS_SB_ICOUNT 0x00000001 | ||
370 | #define XFS_TRANS_SB_IFREE 0x00000002 | ||
371 | #define XFS_TRANS_SB_FDBLOCKS 0x00000004 | ||
372 | #define XFS_TRANS_SB_RES_FDBLOCKS 0x00000008 | ||
373 | #define XFS_TRANS_SB_FREXTENTS 0x00000010 | ||
374 | #define XFS_TRANS_SB_RES_FREXTENTS 0x00000020 | ||
375 | #define XFS_TRANS_SB_DBLOCKS 0x00000040 | ||
376 | #define XFS_TRANS_SB_AGCOUNT 0x00000080 | ||
377 | #define XFS_TRANS_SB_IMAXPCT 0x00000100 | ||
378 | #define XFS_TRANS_SB_REXTSIZE 0x00000200 | ||
379 | #define XFS_TRANS_SB_RBMBLOCKS 0x00000400 | ||
380 | #define XFS_TRANS_SB_RBLOCKS 0x00000800 | ||
381 | #define XFS_TRANS_SB_REXTENTS 0x00001000 | ||
382 | #define XFS_TRANS_SB_REXTSLOG 0x00002000 | ||
383 | |||
384 | /* | ||
385 | * Here we centralize the specification of XFS meta-data buffer | ||
386 | * reference count values. This determine how hard the buffer | ||
387 | * cache tries to hold onto the buffer. | ||
388 | */ | ||
389 | #define XFS_AGF_REF 4 | ||
390 | #define XFS_AGI_REF 4 | ||
391 | #define XFS_AGFL_REF 3 | ||
392 | #define XFS_INO_BTREE_REF 3 | ||
393 | #define XFS_ALLOC_BTREE_REF 2 | ||
394 | #define XFS_BMAP_BTREE_REF 2 | ||
395 | #define XFS_DIR_BTREE_REF 2 | ||
396 | #define XFS_INO_REF 2 | ||
397 | #define XFS_ATTR_BTREE_REF 1 | ||
398 | #define XFS_DQUOT_REF 1 | ||
399 | |||
400 | /* | ||
401 | * Flags for xfs_trans_ichgtime(). | ||
402 | */ | ||
403 | #define XFS_ICHGTIME_MOD 0x1 /* data fork modification timestamp */ | ||
404 | #define XFS_ICHGTIME_CHG 0x2 /* inode field change timestamp */ | ||
405 | #define XFS_ICHGTIME_CREATE 0x4 /* inode create timestamp */ | ||
406 | |||
407 | |||
408 | /* | ||
409 | * Inode Log Item Format definitions. | 237 | * Inode Log Item Format definitions. |
410 | * | 238 | * |
411 | * This is the structure used to lay out an inode log item in the | 239 | * This is the structure used to lay out an inode log item in the |
@@ -797,7 +625,6 @@ typedef struct xfs_qoff_logformat { | |||
797 | char qf_pad[12]; /* padding for future */ | 625 | char qf_pad[12]; /* padding for future */ |
798 | } xfs_qoff_logformat_t; | 626 | } xfs_qoff_logformat_t; |
799 | 627 | ||
800 | |||
801 | /* | 628 | /* |
802 | * Disk quotas status in m_qflags, and also sb_qflags. 16 bits. | 629 | * Disk quotas status in m_qflags, and also sb_qflags. 16 bits. |
803 | */ | 630 | */ |
@@ -849,8 +676,4 @@ struct xfs_icreate_log { | |||
849 | __be32 icl_gen; /* inode generation number to use */ | 676 | __be32 icl_gen; /* inode generation number to use */ |
850 | }; | 677 | }; |
851 | 678 | ||
852 | int xfs_log_calc_unit_res(struct xfs_mount *mp, int unit_bytes); | ||
853 | int xfs_log_calc_minimum_size(struct xfs_mount *); | ||
854 | |||
855 | |||
856 | #endif /* __XFS_LOG_FORMAT_H__ */ | 679 | #endif /* __XFS_LOG_FORMAT_H__ */ |
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index e7ca48e8f515..cbefc1235083 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_inum.h" | 24 | #include "xfs_inum.h" |
diff --git a/fs/xfs/xfs_log_rlimit.c b/fs/xfs/xfs_log_rlimit.c index bbcec0bbc12d..0961310abe46 100644 --- a/fs/xfs/xfs_log_rlimit.c +++ b/fs/xfs/xfs_log_rlimit.c | |||
@@ -17,6 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_shared.h" | ||
20 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
21 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
22 | #include "xfs_ag.h" | 23 | #include "xfs_ag.h" |
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 5dcc68019d1b..9515f96b4ab7 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_inum.h" | 24 | #include "xfs_inum.h" |
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 3e6c2e6c9cd2..dc2d4f7ad7c9 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_qm_syscalls.c b/fs/xfs/xfs_qm_syscalls.c index fb6709191811..174390703eb6 100644 --- a/fs/xfs/xfs_qm_syscalls.c +++ b/fs/xfs/xfs_qm_syscalls.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "xfs.h" | 21 | #include "xfs.h" |
22 | #include "xfs_fs.h" | 22 | #include "xfs_fs.h" |
23 | #include "xfs_format.h" | 23 | #include "xfs_format.h" |
24 | #include "xfs_shared.h" | ||
24 | #include "xfs_bit.h" | 25 | #include "xfs_bit.h" |
25 | #include "xfs_log.h" | 26 | #include "xfs_log.h" |
26 | #include "xfs_trans.h" | 27 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h index e7d84d2d8683..84661d4431fa 100644 --- a/fs/xfs/xfs_quota.h +++ b/fs/xfs/xfs_quota.h | |||
@@ -154,6 +154,4 @@ extern int xfs_qm_dqcheck(struct xfs_mount *, xfs_disk_dquot_t *, | |||
154 | xfs_dqid_t, uint, uint, char *); | 154 | xfs_dqid_t, uint, uint, char *); |
155 | extern int xfs_mount_reset_sbqflags(struct xfs_mount *); | 155 | extern int xfs_mount_reset_sbqflags(struct xfs_mount *); |
156 | 156 | ||
157 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; | ||
158 | |||
159 | #endif /* __XFS_QUOTA_H__ */ | 157 | #endif /* __XFS_QUOTA_H__ */ |
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 6f9e63c9fc26..6f63de303e8e 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_bit.h" | 22 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h index 6835b44f850e..35061d4b614c 100644 --- a/fs/xfs/xfs_sb.h +++ b/fs/xfs/xfs_sb.h | |||
@@ -699,7 +699,4 @@ extern void xfs_sb_from_disk(struct xfs_sb *, struct xfs_dsb *); | |||
699 | extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t); | 699 | extern void xfs_sb_to_disk(struct xfs_dsb *, struct xfs_sb *, __int64_t); |
700 | extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp); | 700 | extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp); |
701 | 701 | ||
702 | extern const struct xfs_buf_ops xfs_sb_buf_ops; | ||
703 | extern const struct xfs_buf_ops xfs_sb_quiet_buf_ops; | ||
704 | |||
705 | #endif /* __XFS_SB_H__ */ | 702 | #endif /* __XFS_SB_H__ */ |
diff --git a/fs/xfs/xfs_shared.h b/fs/xfs/xfs_shared.h new file mode 100644 index 000000000000..8c5035a13df1 --- /dev/null +++ b/fs/xfs/xfs_shared.h | |||
@@ -0,0 +1,244 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. | ||
3 | * Copyright (c) 2013 Red Hat, Inc. | ||
4 | * All Rights Reserved. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it would be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write the Free Software Foundation, | ||
17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #ifndef __XFS_SHARED_H__ | ||
20 | #define __XFS_SHARED_H__ | ||
21 | |||
22 | /* | ||
23 | * Definitions shared between kernel and userspace that don't fit into any other | ||
24 | * header file that is shared with userspace. | ||
25 | */ | ||
26 | struct xfs_ifork; | ||
27 | struct xfs_buf; | ||
28 | struct xfs_buf_ops; | ||
29 | struct xfs_mount; | ||
30 | struct xfs_trans; | ||
31 | struct xfs_inode; | ||
32 | |||
33 | /* | ||
34 | * Buffer verifier operations are widely used, including userspace tools | ||
35 | */ | ||
36 | extern const struct xfs_buf_ops xfs_agf_buf_ops; | ||
37 | extern const struct xfs_buf_ops xfs_agi_buf_ops; | ||
38 | extern const struct xfs_buf_ops xfs_agf_buf_ops; | ||
39 | extern const struct xfs_buf_ops xfs_agfl_buf_ops; | ||
40 | extern const struct xfs_buf_ops xfs_allocbt_buf_ops; | ||
41 | extern const struct xfs_buf_ops xfs_attr3_leaf_buf_ops; | ||
42 | extern const struct xfs_buf_ops xfs_attr3_rmt_buf_ops; | ||
43 | extern const struct xfs_buf_ops xfs_bmbt_buf_ops; | ||
44 | extern const struct xfs_buf_ops xfs_da3_node_buf_ops; | ||
45 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; | ||
46 | extern const struct xfs_buf_ops xfs_symlink_buf_ops; | ||
47 | extern const struct xfs_buf_ops xfs_agi_buf_ops; | ||
48 | extern const struct xfs_buf_ops xfs_inobt_buf_ops; | ||
49 | extern const struct xfs_buf_ops xfs_inode_buf_ops; | ||
50 | extern const struct xfs_buf_ops xfs_inode_buf_ra_ops; | ||
51 | extern const struct xfs_buf_ops xfs_dquot_buf_ops; | ||
52 | extern const struct xfs_buf_ops xfs_sb_buf_ops; | ||
53 | extern const struct xfs_buf_ops xfs_sb_quiet_buf_ops; | ||
54 | extern const struct xfs_buf_ops xfs_symlink_buf_ops; | ||
55 | |||
56 | /* | ||
57 | * Transaction types. Used to distinguish types of buffers. These never reach | ||
58 | * the log. | ||
59 | */ | ||
60 | #define XFS_TRANS_SETATTR_NOT_SIZE 1 | ||
61 | #define XFS_TRANS_SETATTR_SIZE 2 | ||
62 | #define XFS_TRANS_INACTIVE 3 | ||
63 | #define XFS_TRANS_CREATE 4 | ||
64 | #define XFS_TRANS_CREATE_TRUNC 5 | ||
65 | #define XFS_TRANS_TRUNCATE_FILE 6 | ||
66 | #define XFS_TRANS_REMOVE 7 | ||
67 | #define XFS_TRANS_LINK 8 | ||
68 | #define XFS_TRANS_RENAME 9 | ||
69 | #define XFS_TRANS_MKDIR 10 | ||
70 | #define XFS_TRANS_RMDIR 11 | ||
71 | #define XFS_TRANS_SYMLINK 12 | ||
72 | #define XFS_TRANS_SET_DMATTRS 13 | ||
73 | #define XFS_TRANS_GROWFS 14 | ||
74 | #define XFS_TRANS_STRAT_WRITE 15 | ||
75 | #define XFS_TRANS_DIOSTRAT 16 | ||
76 | /* 17 was XFS_TRANS_WRITE_SYNC */ | ||
77 | #define XFS_TRANS_WRITEID 18 | ||
78 | #define XFS_TRANS_ADDAFORK 19 | ||
79 | #define XFS_TRANS_ATTRINVAL 20 | ||
80 | #define XFS_TRANS_ATRUNCATE 21 | ||
81 | #define XFS_TRANS_ATTR_SET 22 | ||
82 | #define XFS_TRANS_ATTR_RM 23 | ||
83 | #define XFS_TRANS_ATTR_FLAG 24 | ||
84 | #define XFS_TRANS_CLEAR_AGI_BUCKET 25 | ||
85 | #define XFS_TRANS_QM_SBCHANGE 26 | ||
86 | /* | ||
87 | * Dummy entries since we use the transaction type to index into the | ||
88 | * trans_type[] in xlog_recover_print_trans_head() | ||
89 | */ | ||
90 | #define XFS_TRANS_DUMMY1 27 | ||
91 | #define XFS_TRANS_DUMMY2 28 | ||
92 | #define XFS_TRANS_QM_QUOTAOFF 29 | ||
93 | #define XFS_TRANS_QM_DQALLOC 30 | ||
94 | #define XFS_TRANS_QM_SETQLIM 31 | ||
95 | #define XFS_TRANS_QM_DQCLUSTER 32 | ||
96 | #define XFS_TRANS_QM_QINOCREATE 33 | ||
97 | #define XFS_TRANS_QM_QUOTAOFF_END 34 | ||
98 | #define XFS_TRANS_SB_UNIT 35 | ||
99 | #define XFS_TRANS_FSYNC_TS 36 | ||
100 | #define XFS_TRANS_GROWFSRT_ALLOC 37 | ||
101 | #define XFS_TRANS_GROWFSRT_ZERO 38 | ||
102 | #define XFS_TRANS_GROWFSRT_FREE 39 | ||
103 | #define XFS_TRANS_SWAPEXT 40 | ||
104 | #define XFS_TRANS_SB_COUNT 41 | ||
105 | #define XFS_TRANS_CHECKPOINT 42 | ||
106 | #define XFS_TRANS_ICREATE 43 | ||
107 | #define XFS_TRANS_TYPE_MAX 43 | ||
108 | /* new transaction types need to be reflected in xfs_logprint(8) */ | ||
109 | |||
110 | #define XFS_TRANS_TYPES \ | ||
111 | { XFS_TRANS_SETATTR_NOT_SIZE, "SETATTR_NOT_SIZE" }, \ | ||
112 | { XFS_TRANS_SETATTR_SIZE, "SETATTR_SIZE" }, \ | ||
113 | { XFS_TRANS_INACTIVE, "INACTIVE" }, \ | ||
114 | { XFS_TRANS_CREATE, "CREATE" }, \ | ||
115 | { XFS_TRANS_CREATE_TRUNC, "CREATE_TRUNC" }, \ | ||
116 | { XFS_TRANS_TRUNCATE_FILE, "TRUNCATE_FILE" }, \ | ||
117 | { XFS_TRANS_REMOVE, "REMOVE" }, \ | ||
118 | { XFS_TRANS_LINK, "LINK" }, \ | ||
119 | { XFS_TRANS_RENAME, "RENAME" }, \ | ||
120 | { XFS_TRANS_MKDIR, "MKDIR" }, \ | ||
121 | { XFS_TRANS_RMDIR, "RMDIR" }, \ | ||
122 | { XFS_TRANS_SYMLINK, "SYMLINK" }, \ | ||
123 | { XFS_TRANS_SET_DMATTRS, "SET_DMATTRS" }, \ | ||
124 | { XFS_TRANS_GROWFS, "GROWFS" }, \ | ||
125 | { XFS_TRANS_STRAT_WRITE, "STRAT_WRITE" }, \ | ||
126 | { XFS_TRANS_DIOSTRAT, "DIOSTRAT" }, \ | ||
127 | { XFS_TRANS_WRITEID, "WRITEID" }, \ | ||
128 | { XFS_TRANS_ADDAFORK, "ADDAFORK" }, \ | ||
129 | { XFS_TRANS_ATTRINVAL, "ATTRINVAL" }, \ | ||
130 | { XFS_TRANS_ATRUNCATE, "ATRUNCATE" }, \ | ||
131 | { XFS_TRANS_ATTR_SET, "ATTR_SET" }, \ | ||
132 | { XFS_TRANS_ATTR_RM, "ATTR_RM" }, \ | ||
133 | { XFS_TRANS_ATTR_FLAG, "ATTR_FLAG" }, \ | ||
134 | { XFS_TRANS_CLEAR_AGI_BUCKET, "CLEAR_AGI_BUCKET" }, \ | ||
135 | { XFS_TRANS_QM_SBCHANGE, "QM_SBCHANGE" }, \ | ||
136 | { XFS_TRANS_QM_QUOTAOFF, "QM_QUOTAOFF" }, \ | ||
137 | { XFS_TRANS_QM_DQALLOC, "QM_DQALLOC" }, \ | ||
138 | { XFS_TRANS_QM_SETQLIM, "QM_SETQLIM" }, \ | ||
139 | { XFS_TRANS_QM_DQCLUSTER, "QM_DQCLUSTER" }, \ | ||
140 | { XFS_TRANS_QM_QINOCREATE, "QM_QINOCREATE" }, \ | ||
141 | { XFS_TRANS_QM_QUOTAOFF_END, "QM_QOFF_END" }, \ | ||
142 | { XFS_TRANS_SB_UNIT, "SB_UNIT" }, \ | ||
143 | { XFS_TRANS_FSYNC_TS, "FSYNC_TS" }, \ | ||
144 | { XFS_TRANS_GROWFSRT_ALLOC, "GROWFSRT_ALLOC" }, \ | ||
145 | { XFS_TRANS_GROWFSRT_ZERO, "GROWFSRT_ZERO" }, \ | ||
146 | { XFS_TRANS_GROWFSRT_FREE, "GROWFSRT_FREE" }, \ | ||
147 | { XFS_TRANS_SWAPEXT, "SWAPEXT" }, \ | ||
148 | { XFS_TRANS_SB_COUNT, "SB_COUNT" }, \ | ||
149 | { XFS_TRANS_CHECKPOINT, "CHECKPOINT" }, \ | ||
150 | { XFS_TRANS_DUMMY1, "DUMMY1" }, \ | ||
151 | { XFS_TRANS_DUMMY2, "DUMMY2" }, \ | ||
152 | { XLOG_UNMOUNT_REC_TYPE, "UNMOUNT" } | ||
153 | |||
154 | /* | ||
155 | * This structure is used to track log items associated with | ||
156 | * a transaction. It points to the log item and keeps some | ||
157 | * flags to track the state of the log item. It also tracks | ||
158 | * the amount of space needed to log the item it describes | ||
159 | * once we get to commit processing (see xfs_trans_commit()). | ||
160 | */ | ||
161 | struct xfs_log_item_desc { | ||
162 | struct xfs_log_item *lid_item; | ||
163 | struct list_head lid_trans; | ||
164 | unsigned char lid_flags; | ||
165 | }; | ||
166 | |||
167 | #define XFS_LID_DIRTY 0x1 | ||
168 | |||
169 | /* log size calculation functions */ | ||
170 | int xfs_log_calc_unit_res(struct xfs_mount *mp, int unit_bytes); | ||
171 | int xfs_log_calc_minimum_size(struct xfs_mount *); | ||
172 | |||
173 | |||
174 | /* | ||
175 | * Values for t_flags. | ||
176 | */ | ||
177 | #define XFS_TRANS_DIRTY 0x01 /* something needs to be logged */ | ||
178 | #define XFS_TRANS_SB_DIRTY 0x02 /* superblock is modified */ | ||
179 | #define XFS_TRANS_PERM_LOG_RES 0x04 /* xact took a permanent log res */ | ||
180 | #define XFS_TRANS_SYNC 0x08 /* make commit synchronous */ | ||
181 | #define XFS_TRANS_DQ_DIRTY 0x10 /* at least one dquot in trx dirty */ | ||
182 | #define XFS_TRANS_RESERVE 0x20 /* OK to use reserved data blocks */ | ||
183 | #define XFS_TRANS_FREEZE_PROT 0x40 /* Transaction has elevated writer | ||
184 | count in superblock */ | ||
185 | /* | ||
186 | * Values for call flags parameter. | ||
187 | */ | ||
188 | #define XFS_TRANS_RELEASE_LOG_RES 0x4 | ||
189 | #define XFS_TRANS_ABORT 0x8 | ||
190 | |||
191 | /* | ||
192 | * Field values for xfs_trans_mod_sb. | ||
193 | */ | ||
194 | #define XFS_TRANS_SB_ICOUNT 0x00000001 | ||
195 | #define XFS_TRANS_SB_IFREE 0x00000002 | ||
196 | #define XFS_TRANS_SB_FDBLOCKS 0x00000004 | ||
197 | #define XFS_TRANS_SB_RES_FDBLOCKS 0x00000008 | ||
198 | #define XFS_TRANS_SB_FREXTENTS 0x00000010 | ||
199 | #define XFS_TRANS_SB_RES_FREXTENTS 0x00000020 | ||
200 | #define XFS_TRANS_SB_DBLOCKS 0x00000040 | ||
201 | #define XFS_TRANS_SB_AGCOUNT 0x00000080 | ||
202 | #define XFS_TRANS_SB_IMAXPCT 0x00000100 | ||
203 | #define XFS_TRANS_SB_REXTSIZE 0x00000200 | ||
204 | #define XFS_TRANS_SB_RBMBLOCKS 0x00000400 | ||
205 | #define XFS_TRANS_SB_RBLOCKS 0x00000800 | ||
206 | #define XFS_TRANS_SB_REXTENTS 0x00001000 | ||
207 | #define XFS_TRANS_SB_REXTSLOG 0x00002000 | ||
208 | |||
209 | /* | ||
210 | * Here we centralize the specification of XFS meta-data buffer reference count | ||
211 | * values. This determines how hard the buffer cache tries to hold onto the | ||
212 | * buffer. | ||
213 | */ | ||
214 | #define XFS_AGF_REF 4 | ||
215 | #define XFS_AGI_REF 4 | ||
216 | #define XFS_AGFL_REF 3 | ||
217 | #define XFS_INO_BTREE_REF 3 | ||
218 | #define XFS_ALLOC_BTREE_REF 2 | ||
219 | #define XFS_BMAP_BTREE_REF 2 | ||
220 | #define XFS_DIR_BTREE_REF 2 | ||
221 | #define XFS_INO_REF 2 | ||
222 | #define XFS_ATTR_BTREE_REF 1 | ||
223 | #define XFS_DQUOT_REF 1 | ||
224 | |||
225 | /* | ||
226 | * Flags for xfs_trans_ichgtime(). | ||
227 | */ | ||
228 | #define XFS_ICHGTIME_MOD 0x1 /* data fork modification timestamp */ | ||
229 | #define XFS_ICHGTIME_CHG 0x2 /* inode field change timestamp */ | ||
230 | #define XFS_ICHGTIME_CREATE 0x4 /* inode create timestamp */ | ||
231 | |||
232 | |||
233 | /* | ||
234 | * Symlink decoding/encoding functions | ||
235 | */ | ||
236 | int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen); | ||
237 | int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, | ||
238 | uint32_t size, struct xfs_buf *bp); | ||
239 | bool xfs_symlink_hdr_ok(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset, | ||
240 | uint32_t size, struct xfs_buf *bp); | ||
241 | void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp, | ||
242 | struct xfs_inode *ip, struct xfs_ifork *ifp); | ||
243 | |||
244 | #endif /* __XFS_SHARED_H__ */ | ||
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index c2e3e9535b26..4886b35b1ef1 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
22 | #include "xfs_inum.h" | 23 | #include "xfs_inum.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index ded282b10bc2..cba781edb192 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_bit.h" | 23 | #include "xfs_bit.h" |
23 | #include "xfs_log.h" | 24 | #include "xfs_log.h" |
24 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |
diff --git a/fs/xfs/xfs_symlink_remote.c b/fs/xfs/xfs_symlink_remote.c index 01c85e3f6470..4251cd8e8fec 100644 --- a/fs/xfs/xfs_symlink_remote.c +++ b/fs/xfs/xfs_symlink_remote.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
24 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c index 5d7b3e40705f..29705391c896 100644 --- a/fs/xfs/xfs_trace.c +++ b/fs/xfs/xfs_trace.c | |||
@@ -17,8 +17,8 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | ||
21 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
22 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
24 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 5411e01ab452..3693ce279143 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
24 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans_buf.c b/fs/xfs/xfs_trans_buf.c index 8c75b8f67270..0167a65ec851 100644 --- a/fs/xfs/xfs_trans_buf.c +++ b/fs/xfs/xfs_trans_buf.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans_dquot.c b/fs/xfs/xfs_trans_dquot.c index 54ee3c5dee76..4d630d2c2804 100644 --- a/fs/xfs/xfs_trans_dquot.c +++ b/fs/xfs/xfs_trans_dquot.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_format.h" | 20 | #include "xfs_format.h" |
21 | #include "xfs_shared.h" | ||
21 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans_extfree.c b/fs/xfs/xfs_trans_extfree.c index 8d71b16eccae..3bfb98bec050 100644 --- a/fs/xfs/xfs_trans_extfree.c +++ b/fs/xfs/xfs_trans_extfree.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans_inode.c b/fs/xfs/xfs_trans_inode.c index 53dfe46f3680..dcab52ec9cb6 100644 --- a/fs/xfs/xfs_trans_inode.c +++ b/fs/xfs/xfs_trans_inode.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | #include "xfs.h" | 18 | #include "xfs.h" |
19 | #include "xfs_fs.h" | 19 | #include "xfs_fs.h" |
20 | #include "xfs_types.h" | 20 | #include "xfs_shared.h" |
21 | #include "xfs_log.h" | 21 | #include "xfs_log.h" |
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
diff --git a/fs/xfs/xfs_trans_resv.c b/fs/xfs/xfs_trans_resv.c index a65a3cc40610..b5d952dbe6a4 100644 --- a/fs/xfs/xfs_trans_resv.c +++ b/fs/xfs/xfs_trans_resv.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "xfs.h" | 19 | #include "xfs.h" |
20 | #include "xfs_fs.h" | 20 | #include "xfs_fs.h" |
21 | #include "xfs_format.h" | 21 | #include "xfs_format.h" |
22 | #include "xfs_shared.h" | ||
22 | #include "xfs_log.h" | 23 | #include "xfs_log.h" |
23 | #include "xfs_trans_resv.h" | 24 | #include "xfs_trans_resv.h" |
24 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |