diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:37 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:40:57 -0400 |
commit | 2b9ab5ab9c4a1f16f11ad883bfd21d5eb55e5bcc (patch) | |
tree | 1b55a17209cfde971a8bfca70d14cc2c937e8fbe /fs/xfs | |
parent | 4a8af273de63d9656559ba5289e91f40aae0441f (diff) |
xfs: reshuffle dir2 definitions around for userspace
Many of the definitions within xfs_dir2_priv.h are needed in
userspace outside libxfs. Definitions within xfs_dir2_priv.h are
wholly contained within libxfs, so we need to shuffle some of the
definitions around to keep consistency across files shared between
user and kernel space.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_da_btree.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2.h | 51 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_block.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_data.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_leaf.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_node.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_priv.h | 31 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_dir2_sf.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_export.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_file.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_icreate_item.c | 12 | ||||
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_mount.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_rename.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_rtalloc.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_symlink.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_utils.c | 4 | ||||
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 3 |
22 files changed, 83 insertions, 64 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 0343b44b8284..72a2eea597e9 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -24,9 +24,10 @@ | |||
24 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
25 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
26 | #include "xfs_ag.h" | 26 | #include "xfs_ag.h" |
27 | #include "xfs_dir2.h" | ||
28 | #include "xfs_mount.h" | 27 | #include "xfs_mount.h" |
29 | #include "xfs_da_btree.h" | 28 | #include "xfs_da_btree.h" |
29 | #include "xfs_dir2_format.h" | ||
30 | #include "xfs_dir2.h" | ||
30 | #include "xfs_bmap_btree.h" | 31 | #include "xfs_bmap_btree.h" |
31 | #include "xfs_alloc_btree.h" | 32 | #include "xfs_alloc_btree.h" |
32 | #include "xfs_ialloc_btree.h" | 33 | #include "xfs_ialloc_btree.h" |
diff --git a/fs/xfs/xfs_da_btree.c b/fs/xfs/xfs_da_btree.c index 0b8b2a13cd24..8bbd7ef66ea8 100644 --- a/fs/xfs/xfs_da_btree.c +++ b/fs/xfs/xfs_da_btree.c | |||
@@ -27,8 +27,8 @@ | |||
27 | #include "xfs_mount.h" | 27 | #include "xfs_mount.h" |
28 | #include "xfs_da_btree.h" | 28 | #include "xfs_da_btree.h" |
29 | #include "xfs_bmap_btree.h" | 29 | #include "xfs_bmap_btree.h" |
30 | #include "xfs_dir2.h" | ||
31 | #include "xfs_dir2_format.h" | 30 | #include "xfs_dir2_format.h" |
31 | #include "xfs_dir2.h" | ||
32 | #include "xfs_dir2_priv.h" | 32 | #include "xfs_dir2_priv.h" |
33 | #include "xfs_dinode.h" | 33 | #include "xfs_dinode.h" |
34 | #include "xfs_inode.h" | 34 | #include "xfs_inode.h" |
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index 431be441347f..c3263a56b861 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include "xfs_inode.h" | 31 | #include "xfs_inode.h" |
32 | #include "xfs_inode_item.h" | 32 | #include "xfs_inode_item.h" |
33 | #include "xfs_bmap.h" | 33 | #include "xfs_bmap.h" |
34 | #include "xfs_dir2.h" | ||
35 | #include "xfs_dir2_format.h" | 34 | #include "xfs_dir2_format.h" |
35 | #include "xfs_dir2.h" | ||
36 | #include "xfs_dir2_priv.h" | 36 | #include "xfs_dir2_priv.h" |
37 | #include "xfs_error.h" | 37 | #include "xfs_error.h" |
38 | #include "xfs_vnodeops.h" | 38 | #include "xfs_vnodeops.h" |
diff --git a/fs/xfs/xfs_dir2.h b/fs/xfs/xfs_dir2.h index e937d9991c18..7ef6b0fb951a 100644 --- a/fs/xfs/xfs_dir2.h +++ b/fs/xfs/xfs_dir2.h | |||
@@ -23,6 +23,11 @@ struct xfs_da_args; | |||
23 | struct xfs_inode; | 23 | struct xfs_inode; |
24 | struct xfs_mount; | 24 | struct xfs_mount; |
25 | struct xfs_trans; | 25 | struct xfs_trans; |
26 | struct xfs_dir2_sf_hdr; | ||
27 | struct xfs_dir2_sf_entry; | ||
28 | struct xfs_dir2_data_hdr; | ||
29 | struct xfs_dir2_data_entry; | ||
30 | struct xfs_dir2_data_unused; | ||
26 | 31 | ||
27 | extern struct xfs_name xfs_name_dotdot; | 32 | extern struct xfs_name xfs_name_dotdot; |
28 | 33 | ||
@@ -57,4 +62,50 @@ extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp, | |||
57 | */ | 62 | */ |
58 | extern int xfs_dir2_sf_to_block(struct xfs_da_args *args); | 63 | extern int xfs_dir2_sf_to_block(struct xfs_da_args *args); |
59 | 64 | ||
65 | /* | ||
66 | * Direct call on directory open, before entering the readdir code. | ||
67 | */ | ||
68 | extern int xfs_dir3_data_readahead(struct xfs_trans *tp, struct xfs_inode *dp, | ||
69 | xfs_dablk_t bno, xfs_daddr_t mapped_bno); | ||
70 | |||
71 | /* | ||
72 | * Interface routines used by userspace utilities | ||
73 | */ | ||
74 | extern xfs_ino_t xfs_dir2_sf_get_parent_ino(struct xfs_dir2_sf_hdr *sfp); | ||
75 | extern void xfs_dir2_sf_put_parent_ino(struct xfs_dir2_sf_hdr *sfp, | ||
76 | xfs_ino_t ino); | ||
77 | extern xfs_ino_t xfs_dir2_sfe_get_ino(struct xfs_dir2_sf_hdr *sfp, | ||
78 | struct xfs_dir2_sf_entry *sfep); | ||
79 | extern void xfs_dir2_sfe_put_ino( struct xfs_dir2_sf_hdr *, | ||
80 | struct xfs_dir2_sf_entry *sfep, xfs_ino_t ino); | ||
81 | |||
82 | extern int xfs_dir2_isblock(struct xfs_trans *tp, struct xfs_inode *dp, int *r); | ||
83 | extern int xfs_dir2_isleaf(struct xfs_trans *tp, struct xfs_inode *dp, int *r); | ||
84 | extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db, | ||
85 | struct xfs_buf *bp); | ||
86 | |||
87 | extern void xfs_dir2_data_freescan(struct xfs_mount *mp, | ||
88 | struct xfs_dir2_data_hdr *hdr, int *loghead); | ||
89 | extern void xfs_dir2_data_log_entry(struct xfs_trans *tp, struct xfs_buf *bp, | ||
90 | struct xfs_dir2_data_entry *dep); | ||
91 | extern void xfs_dir2_data_log_header(struct xfs_trans *tp, | ||
92 | struct xfs_buf *bp); | ||
93 | extern void xfs_dir2_data_log_unused(struct xfs_trans *tp, struct xfs_buf *bp, | ||
94 | struct xfs_dir2_data_unused *dup); | ||
95 | extern void xfs_dir2_data_make_free(struct xfs_trans *tp, struct xfs_buf *bp, | ||
96 | xfs_dir2_data_aoff_t offset, xfs_dir2_data_aoff_t len, | ||
97 | int *needlogp, int *needscanp); | ||
98 | extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp, | ||
99 | struct xfs_dir2_data_unused *dup, xfs_dir2_data_aoff_t offset, | ||
100 | xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp); | ||
101 | |||
102 | extern struct xfs_dir2_data_free *xfs_dir2_data_freefind( | ||
103 | struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_unused *dup); | ||
104 | |||
105 | extern const struct xfs_buf_ops xfs_dir3_block_buf_ops; | ||
106 | extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops; | ||
107 | extern const struct xfs_buf_ops xfs_dir3_leaf1_buf_ops; | ||
108 | extern const struct xfs_buf_ops xfs_dir3_free_buf_ops; | ||
109 | extern const struct xfs_buf_ops xfs_dir3_data_buf_ops; | ||
110 | |||
60 | #endif /* __XFS_DIR2_H__ */ | 111 | #endif /* __XFS_DIR2_H__ */ |
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c index 5e8400064fa9..becd69f6e4b8 100644 --- a/fs/xfs/xfs_dir2_block.c +++ b/fs/xfs/xfs_dir2_block.c | |||
@@ -31,8 +31,8 @@ | |||
31 | #include "xfs_inode_item.h" | 31 | #include "xfs_inode_item.h" |
32 | #include "xfs_bmap.h" | 32 | #include "xfs_bmap.h" |
33 | #include "xfs_buf_item.h" | 33 | #include "xfs_buf_item.h" |
34 | #include "xfs_dir2.h" | ||
35 | #include "xfs_dir2_format.h" | 34 | #include "xfs_dir2_format.h" |
35 | #include "xfs_dir2.h" | ||
36 | #include "xfs_dir2_priv.h" | 36 | #include "xfs_dir2_priv.h" |
37 | #include "xfs_error.h" | 37 | #include "xfs_error.h" |
38 | #include "xfs_trace.h" | 38 | #include "xfs_trace.h" |
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c index c2930238005c..4e1917dd6c5b 100644 --- a/fs/xfs/xfs_dir2_data.c +++ b/fs/xfs/xfs_dir2_data.c | |||
@@ -29,14 +29,12 @@ | |||
29 | #include "xfs_dinode.h" | 29 | #include "xfs_dinode.h" |
30 | #include "xfs_inode.h" | 30 | #include "xfs_inode.h" |
31 | #include "xfs_dir2_format.h" | 31 | #include "xfs_dir2_format.h" |
32 | #include "xfs_dir2.h" | ||
32 | #include "xfs_dir2_priv.h" | 33 | #include "xfs_dir2_priv.h" |
33 | #include "xfs_error.h" | 34 | #include "xfs_error.h" |
34 | #include "xfs_buf_item.h" | 35 | #include "xfs_buf_item.h" |
35 | #include "xfs_cksum.h" | 36 | #include "xfs_cksum.h" |
36 | 37 | ||
37 | STATIC xfs_dir2_data_free_t * | ||
38 | xfs_dir2_data_freefind(xfs_dir2_data_hdr_t *hdr, xfs_dir2_data_unused_t *dup); | ||
39 | |||
40 | /* | 38 | /* |
41 | * Check the consistency of the data block. | 39 | * Check the consistency of the data block. |
42 | * The input can also be a block-format directory. | 40 | * The input can also be a block-format directory. |
@@ -325,7 +323,7 @@ xfs_dir3_data_readahead( | |||
325 | * Given a data block and an unused entry from that block, | 323 | * Given a data block and an unused entry from that block, |
326 | * return the bestfree entry if any that corresponds to it. | 324 | * return the bestfree entry if any that corresponds to it. |
327 | */ | 325 | */ |
328 | STATIC xfs_dir2_data_free_t * | 326 | xfs_dir2_data_free_t * |
329 | xfs_dir2_data_freefind( | 327 | xfs_dir2_data_freefind( |
330 | xfs_dir2_data_hdr_t *hdr, /* data block */ | 328 | xfs_dir2_data_hdr_t *hdr, /* data block */ |
331 | xfs_dir2_data_unused_t *dup) /* data unused entry */ | 329 | xfs_dir2_data_unused_t *dup) /* data unused entry */ |
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c index e1386aabb690..5505edb9b2ff 100644 --- a/fs/xfs/xfs_dir2_leaf.c +++ b/fs/xfs/xfs_dir2_leaf.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "xfs_inode.h" | 31 | #include "xfs_inode.h" |
32 | #include "xfs_bmap.h" | 32 | #include "xfs_bmap.h" |
33 | #include "xfs_dir2_format.h" | 33 | #include "xfs_dir2_format.h" |
34 | #include "xfs_dir2.h" | ||
34 | #include "xfs_dir2_priv.h" | 35 | #include "xfs_dir2_priv.h" |
35 | #include "xfs_error.h" | 36 | #include "xfs_error.h" |
36 | #include "xfs_trace.h" | 37 | #include "xfs_trace.h" |
diff --git a/fs/xfs/xfs_dir2_node.c b/fs/xfs/xfs_dir2_node.c index 2226a00acd15..b4bd9b6e93f9 100644 --- a/fs/xfs/xfs_dir2_node.c +++ b/fs/xfs/xfs_dir2_node.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "xfs_inode.h" | 30 | #include "xfs_inode.h" |
31 | #include "xfs_bmap.h" | 31 | #include "xfs_bmap.h" |
32 | #include "xfs_dir2_format.h" | 32 | #include "xfs_dir2_format.h" |
33 | #include "xfs_dir2.h" | ||
33 | #include "xfs_dir2_priv.h" | 34 | #include "xfs_dir2_priv.h" |
34 | #include "xfs_error.h" | 35 | #include "xfs_error.h" |
35 | #include "xfs_trace.h" | 36 | #include "xfs_trace.h" |
diff --git a/fs/xfs/xfs_dir2_priv.h b/fs/xfs/xfs_dir2_priv.h index 72ff8d74e8eb..807eb658107c 100644 --- a/fs/xfs/xfs_dir2_priv.h +++ b/fs/xfs/xfs_dir2_priv.h | |||
@@ -20,18 +20,12 @@ | |||
20 | 20 | ||
21 | /* xfs_dir2.c */ | 21 | /* xfs_dir2.c */ |
22 | extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino); | 22 | extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino); |
23 | extern int xfs_dir2_isblock(struct xfs_trans *tp, struct xfs_inode *dp, int *r); | ||
24 | extern int xfs_dir2_isleaf(struct xfs_trans *tp, struct xfs_inode *dp, int *r); | ||
25 | extern int xfs_dir2_grow_inode(struct xfs_da_args *args, int space, | 23 | extern int xfs_dir2_grow_inode(struct xfs_da_args *args, int space, |
26 | xfs_dir2_db_t *dbp); | 24 | xfs_dir2_db_t *dbp); |
27 | extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db, | ||
28 | struct xfs_buf *bp); | ||
29 | extern int xfs_dir_cilookup_result(struct xfs_da_args *args, | 25 | extern int xfs_dir_cilookup_result(struct xfs_da_args *args, |
30 | const unsigned char *name, int len); | 26 | const unsigned char *name, int len); |
31 | 27 | ||
32 | /* xfs_dir2_block.c */ | 28 | /* xfs_dir2_block.c */ |
33 | extern const struct xfs_buf_ops xfs_dir3_block_buf_ops; | ||
34 | |||
35 | extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp, | 29 | extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp, |
36 | struct xfs_buf **bpp); | 30 | struct xfs_buf **bpp); |
37 | extern int xfs_dir2_block_addname(struct xfs_da_args *args); | 31 | extern int xfs_dir2_block_addname(struct xfs_da_args *args); |
@@ -48,39 +42,17 @@ extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args, | |||
48 | #define xfs_dir3_data_check(dp,bp) | 42 | #define xfs_dir3_data_check(dp,bp) |
49 | #endif | 43 | #endif |
50 | 44 | ||
51 | extern const struct xfs_buf_ops xfs_dir3_data_buf_ops; | ||
52 | extern const struct xfs_buf_ops xfs_dir3_free_buf_ops; | ||
53 | |||
54 | extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp); | 45 | extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp); |
55 | extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, | 46 | extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, |
56 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); | 47 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); |
57 | extern int xfs_dir3_data_readahead(struct xfs_trans *tp, struct xfs_inode *dp, | ||
58 | xfs_dablk_t bno, xfs_daddr_t mapped_bno); | ||
59 | 48 | ||
60 | extern struct xfs_dir2_data_free * | 49 | extern struct xfs_dir2_data_free * |
61 | xfs_dir2_data_freeinsert(struct xfs_dir2_data_hdr *hdr, | 50 | xfs_dir2_data_freeinsert(struct xfs_dir2_data_hdr *hdr, |
62 | struct xfs_dir2_data_unused *dup, int *loghead); | 51 | struct xfs_dir2_data_unused *dup, int *loghead); |
63 | extern void xfs_dir2_data_freescan(struct xfs_mount *mp, | ||
64 | struct xfs_dir2_data_hdr *hdr, int *loghead); | ||
65 | extern int xfs_dir3_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno, | 52 | extern int xfs_dir3_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno, |
66 | struct xfs_buf **bpp); | 53 | struct xfs_buf **bpp); |
67 | extern void xfs_dir2_data_log_entry(struct xfs_trans *tp, struct xfs_buf *bp, | ||
68 | struct xfs_dir2_data_entry *dep); | ||
69 | extern void xfs_dir2_data_log_header(struct xfs_trans *tp, | ||
70 | struct xfs_buf *bp); | ||
71 | extern void xfs_dir2_data_log_unused(struct xfs_trans *tp, struct xfs_buf *bp, | ||
72 | struct xfs_dir2_data_unused *dup); | ||
73 | extern void xfs_dir2_data_make_free(struct xfs_trans *tp, struct xfs_buf *bp, | ||
74 | xfs_dir2_data_aoff_t offset, xfs_dir2_data_aoff_t len, | ||
75 | int *needlogp, int *needscanp); | ||
76 | extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp, | ||
77 | struct xfs_dir2_data_unused *dup, xfs_dir2_data_aoff_t offset, | ||
78 | xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp); | ||
79 | 54 | ||
80 | /* xfs_dir2_leaf.c */ | 55 | /* xfs_dir2_leaf.c */ |
81 | extern const struct xfs_buf_ops xfs_dir3_leaf1_buf_ops; | ||
82 | extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops; | ||
83 | |||
84 | extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, | 56 | extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, |
85 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); | 57 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); |
86 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, | 58 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, |
@@ -142,9 +114,6 @@ extern int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp, | |||
142 | xfs_dablk_t fbno, struct xfs_buf **bpp); | 114 | xfs_dablk_t fbno, struct xfs_buf **bpp); |
143 | 115 | ||
144 | /* xfs_dir2_sf.c */ | 116 | /* xfs_dir2_sf.c */ |
145 | extern xfs_ino_t xfs_dir2_sf_get_parent_ino(struct xfs_dir2_sf_hdr *sfp); | ||
146 | extern xfs_ino_t xfs_dir2_sfe_get_ino(struct xfs_dir2_sf_hdr *sfp, | ||
147 | struct xfs_dir2_sf_entry *sfep); | ||
148 | extern int xfs_dir2_block_sfsize(struct xfs_inode *dp, | 117 | extern int xfs_dir2_block_sfsize(struct xfs_inode *dp, |
149 | struct xfs_dir2_data_hdr *block, struct xfs_dir2_sf_hdr *sfhp); | 118 | struct xfs_dir2_data_hdr *block, struct xfs_dir2_sf_hdr *sfhp); |
150 | extern int xfs_dir2_block_to_sf(struct xfs_da_args *args, struct xfs_buf *bp, | 119 | extern int xfs_dir2_block_to_sf(struct xfs_da_args *args, struct xfs_buf *bp, |
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index 2bc4b324ff76..5f4f705eebbb 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "xfs_dinode.h" | 30 | #include "xfs_dinode.h" |
31 | #include "xfs_inode.h" | 31 | #include "xfs_inode.h" |
32 | #include "xfs_dir2_format.h" | 32 | #include "xfs_dir2_format.h" |
33 | #include "xfs_dir2.h" | ||
33 | #include "xfs_dir2_priv.h" | 34 | #include "xfs_dir2_priv.h" |
34 | #include "xfs_error.h" | 35 | #include "xfs_error.h" |
35 | #include "xfs_trace.h" | 36 | #include "xfs_trace.h" |
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c index f24ce9044e72..65b65c5f8c3c 100644 --- a/fs/xfs/xfs_dir2_sf.c +++ b/fs/xfs/xfs_dir2_sf.c | |||
@@ -29,8 +29,8 @@ | |||
29 | #include "xfs_inode.h" | 29 | #include "xfs_inode.h" |
30 | #include "xfs_inode_item.h" | 30 | #include "xfs_inode_item.h" |
31 | #include "xfs_error.h" | 31 | #include "xfs_error.h" |
32 | #include "xfs_dir2.h" | ||
33 | #include "xfs_dir2_format.h" | 32 | #include "xfs_dir2_format.h" |
33 | #include "xfs_dir2.h" | ||
34 | #include "xfs_dir2_priv.h" | 34 | #include "xfs_dir2_priv.h" |
35 | #include "xfs_trace.h" | 35 | #include "xfs_trace.h" |
36 | 36 | ||
@@ -95,7 +95,7 @@ xfs_dir2_sf_get_parent_ino( | |||
95 | return xfs_dir2_sf_get_ino(hdr, &hdr->parent); | 95 | return xfs_dir2_sf_get_ino(hdr, &hdr->parent); |
96 | } | 96 | } |
97 | 97 | ||
98 | static void | 98 | void |
99 | xfs_dir2_sf_put_parent_ino( | 99 | xfs_dir2_sf_put_parent_ino( |
100 | struct xfs_dir2_sf_hdr *hdr, | 100 | struct xfs_dir2_sf_hdr *hdr, |
101 | xfs_ino_t ino) | 101 | xfs_ino_t ino) |
@@ -123,7 +123,7 @@ xfs_dir2_sfe_get_ino( | |||
123 | return xfs_dir2_sf_get_ino(hdr, xfs_dir2_sfe_inop(sfep)); | 123 | return xfs_dir2_sf_get_ino(hdr, xfs_dir2_sfe_inop(sfep)); |
124 | } | 124 | } |
125 | 125 | ||
126 | static void | 126 | void |
127 | xfs_dir2_sfe_put_ino( | 127 | xfs_dir2_sfe_put_ino( |
128 | struct xfs_dir2_sf_hdr *hdr, | 128 | struct xfs_dir2_sf_hdr *hdr, |
129 | struct xfs_dir2_sf_entry *sfep, | 129 | struct xfs_dir2_sf_entry *sfep, |
diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c index c585bc646395..29c880fbdb1b 100644 --- a/fs/xfs/xfs_export.c +++ b/fs/xfs/xfs_export.c | |||
@@ -21,8 +21,10 @@ | |||
21 | #include "xfs_trans.h" | 21 | #include "xfs_trans.h" |
22 | #include "xfs_sb.h" | 22 | #include "xfs_sb.h" |
23 | #include "xfs_ag.h" | 23 | #include "xfs_ag.h" |
24 | #include "xfs_dir2.h" | ||
25 | #include "xfs_mount.h" | 24 | #include "xfs_mount.h" |
25 | #include "xfs_da_btree.h" | ||
26 | #include "xfs_dir2_format.h" | ||
27 | #include "xfs_dir2.h" | ||
26 | #include "xfs_export.h" | 28 | #include "xfs_export.h" |
27 | #include "xfs_vnodeops.h" | 29 | #include "xfs_vnodeops.h" |
28 | #include "xfs_bmap_btree.h" | 30 | #include "xfs_bmap_btree.h" |
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index de3dc98f4e8f..1ba3c7998b9a 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include "xfs_vnodeops.h" | 32 | #include "xfs_vnodeops.h" |
33 | #include "xfs_da_btree.h" | 33 | #include "xfs_da_btree.h" |
34 | #include "xfs_dir2_format.h" | 34 | #include "xfs_dir2_format.h" |
35 | #include "xfs_dir2_priv.h" | 35 | #include "xfs_dir2.h" |
36 | #include "xfs_ioctl.h" | 36 | #include "xfs_ioctl.h" |
37 | #include "xfs_trace.h" | 37 | #include "xfs_trace.h" |
38 | 38 | ||
diff --git a/fs/xfs/xfs_icreate_item.c b/fs/xfs/xfs_icreate_item.c index 7716a4e7375e..441a78a89901 100644 --- a/fs/xfs/xfs_icreate_item.c +++ b/fs/xfs/xfs_icreate_item.c | |||
@@ -20,23 +20,11 @@ | |||
20 | #include "xfs_types.h" | 20 | #include "xfs_types.h" |
21 | #include "xfs_bit.h" | 21 | #include "xfs_bit.h" |
22 | #include "xfs_log.h" | 22 | #include "xfs_log.h" |
23 | #include "xfs_inum.h" | ||
24 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
25 | #include "xfs_buf_item.h" | ||
26 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
27 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
28 | #include "xfs_dir2.h" | ||
29 | #include "xfs_mount.h" | 26 | #include "xfs_mount.h" |
30 | #include "xfs_trans_priv.h" | 27 | #include "xfs_trans_priv.h" |
31 | #include "xfs_bmap_btree.h" | ||
32 | #include "xfs_alloc_btree.h" | ||
33 | #include "xfs_ialloc_btree.h" | ||
34 | #include "xfs_attr_sf.h" | ||
35 | #include "xfs_dinode.h" | ||
36 | #include "xfs_inode.h" | ||
37 | #include "xfs_inode_item.h" | ||
38 | #include "xfs_btree.h" | ||
39 | #include "xfs_ialloc.h" | ||
40 | #include "xfs_error.h" | 28 | #include "xfs_error.h" |
41 | #include "xfs_icreate_item.h" | 29 | #include "xfs_icreate_item.h" |
42 | 30 | ||
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 7e480860fa75..62ddae32b991 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include "xfs_symlink.h" | 51 | #include "xfs_symlink.h" |
52 | #include "xfs_da_btree.h" | 52 | #include "xfs_da_btree.h" |
53 | #include "xfs_dir2_format.h" | 53 | #include "xfs_dir2_format.h" |
54 | #include "xfs_dir2_priv.h" | 54 | #include "xfs_dir2.h" |
55 | #include "xfs_attr_leaf.h" | 55 | #include "xfs_attr_leaf.h" |
56 | #include "xfs_attr_remote.h" | 56 | #include "xfs_attr_remote.h" |
57 | 57 | ||
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index ca4a1a5776af..b07ca4be3941 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -25,8 +25,10 @@ | |||
25 | #include "xfs_trans_priv.h" | 25 | #include "xfs_trans_priv.h" |
26 | #include "xfs_sb.h" | 26 | #include "xfs_sb.h" |
27 | #include "xfs_ag.h" | 27 | #include "xfs_ag.h" |
28 | #include "xfs_dir2.h" | ||
29 | #include "xfs_mount.h" | 28 | #include "xfs_mount.h" |
29 | #include "xfs_da_btree.h" | ||
30 | #include "xfs_dir2_format.h" | ||
31 | #include "xfs_dir2.h" | ||
30 | #include "xfs_bmap_btree.h" | 32 | #include "xfs_bmap_btree.h" |
31 | #include "xfs_alloc_btree.h" | 33 | #include "xfs_alloc_btree.h" |
32 | #include "xfs_ialloc_btree.h" | 34 | #include "xfs_ialloc_btree.h" |
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c index 0c1f8ef1880b..4715c7f65073 100644 --- a/fs/xfs/xfs_rename.c +++ b/fs/xfs/xfs_rename.c | |||
@@ -22,9 +22,10 @@ | |||
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
24 | #include "xfs_ag.h" | 24 | #include "xfs_ag.h" |
25 | #include "xfs_dir2.h" | ||
26 | #include "xfs_mount.h" | 25 | #include "xfs_mount.h" |
27 | #include "xfs_da_btree.h" | 26 | #include "xfs_da_btree.h" |
27 | #include "xfs_dir2_format.h" | ||
28 | #include "xfs_dir2.h" | ||
28 | #include "xfs_bmap_btree.h" | 29 | #include "xfs_bmap_btree.h" |
29 | #include "xfs_dinode.h" | 30 | #include "xfs_dinode.h" |
30 | #include "xfs_inode.h" | 31 | #include "xfs_inode.h" |
diff --git a/fs/xfs/xfs_rtalloc.c b/fs/xfs/xfs_rtalloc.c index 5d900ec0ce7b..bb4f7a114c8b 100644 --- a/fs/xfs/xfs_rtalloc.c +++ b/fs/xfs/xfs_rtalloc.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
24 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
25 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
26 | #include "xfs_dir2.h" | ||
27 | #include "xfs_mount.h" | 26 | #include "xfs_mount.h" |
28 | #include "xfs_bmap_btree.h" | 27 | #include "xfs_bmap_btree.h" |
29 | #include "xfs_dinode.h" | 28 | #include "xfs_dinode.h" |
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 47a1abd94aca..aefc0044237d 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include "xfs_trans.h" | 23 | #include "xfs_trans.h" |
24 | #include "xfs_sb.h" | 24 | #include "xfs_sb.h" |
25 | #include "xfs_ag.h" | 25 | #include "xfs_ag.h" |
26 | #include "xfs_dir2.h" | ||
27 | #include "xfs_alloc.h" | 26 | #include "xfs_alloc.h" |
28 | #include "xfs_quota.h" | 27 | #include "xfs_quota.h" |
29 | #include "xfs_mount.h" | 28 | #include "xfs_mount.h" |
@@ -47,6 +46,8 @@ | |||
47 | #include "xfs_trans_priv.h" | 46 | #include "xfs_trans_priv.h" |
48 | #include "xfs_filestream.h" | 47 | #include "xfs_filestream.h" |
49 | #include "xfs_da_btree.h" | 48 | #include "xfs_da_btree.h" |
49 | #include "xfs_dir2_format.h" | ||
50 | #include "xfs_dir2.h" | ||
50 | #include "xfs_extfree_item.h" | 51 | #include "xfs_extfree_item.h" |
51 | #include "xfs_mru_cache.h" | 52 | #include "xfs_mru_cache.h" |
52 | #include "xfs_inode_item.h" | 53 | #include "xfs_inode_item.h" |
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index 80d550c18bd5..dd7c0991fdb9 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c | |||
@@ -24,9 +24,10 @@ | |||
24 | #include "xfs_trans.h" | 24 | #include "xfs_trans.h" |
25 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
26 | #include "xfs_ag.h" | 26 | #include "xfs_ag.h" |
27 | #include "xfs_dir2.h" | ||
28 | #include "xfs_mount.h" | 27 | #include "xfs_mount.h" |
29 | #include "xfs_da_btree.h" | 28 | #include "xfs_da_btree.h" |
29 | #include "xfs_dir2_format.h" | ||
30 | #include "xfs_dir2.h" | ||
30 | #include "xfs_bmap_btree.h" | 31 | #include "xfs_bmap_btree.h" |
31 | #include "xfs_ialloc_btree.h" | 32 | #include "xfs_ialloc_btree.h" |
32 | #include "xfs_dinode.h" | 33 | #include "xfs_dinode.h" |
diff --git a/fs/xfs/xfs_utils.c b/fs/xfs/xfs_utils.c index 58386fab913e..fde7d2231ee8 100644 --- a/fs/xfs/xfs_utils.c +++ b/fs/xfs/xfs_utils.c | |||
@@ -22,8 +22,10 @@ | |||
22 | #include "xfs_trans.h" | 22 | #include "xfs_trans.h" |
23 | #include "xfs_sb.h" | 23 | #include "xfs_sb.h" |
24 | #include "xfs_ag.h" | 24 | #include "xfs_ag.h" |
25 | #include "xfs_dir2.h" | ||
26 | #include "xfs_mount.h" | 25 | #include "xfs_mount.h" |
26 | #include "xfs_da_btree.h" | ||
27 | #include "xfs_dir2_format.h" | ||
28 | #include "xfs_dir2.h" | ||
27 | #include "xfs_bmap_btree.h" | 29 | #include "xfs_bmap_btree.h" |
28 | #include "xfs_dinode.h" | 30 | #include "xfs_dinode.h" |
29 | #include "xfs_inode.h" | 31 | #include "xfs_inode.h" |
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index c2d96cd43809..221e2e3cec8c 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -25,9 +25,10 @@ | |||
25 | #include "xfs_trans.h" | 25 | #include "xfs_trans.h" |
26 | #include "xfs_sb.h" | 26 | #include "xfs_sb.h" |
27 | #include "xfs_ag.h" | 27 | #include "xfs_ag.h" |
28 | #include "xfs_dir2.h" | ||
29 | #include "xfs_mount.h" | 28 | #include "xfs_mount.h" |
30 | #include "xfs_da_btree.h" | 29 | #include "xfs_da_btree.h" |
30 | #include "xfs_dir2_format.h" | ||
31 | #include "xfs_dir2.h" | ||
31 | #include "xfs_bmap_btree.h" | 32 | #include "xfs_bmap_btree.h" |
32 | #include "xfs_ialloc_btree.h" | 33 | #include "xfs_ialloc_btree.h" |
33 | #include "xfs_dinode.h" | 34 | #include "xfs_dinode.h" |