aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2013-10-22 19:50:10 -0400
committerBen Myers <bpm@sgi.com>2013-10-23 17:17:44 -0400
commit239880ef6454ccff2ba8d762c3f86e8278f0ce1c (patch)
tree9a1203dea8957de0348d241a8bf94580013d915a /fs/xfs/xfs_log_recover.c
parentd420e5c810bce5debce0238021b410d0ef99cf08 (diff)
xfs: decouple log and transaction headers
xfs_trans.h has a dependency on xfs_log.h for a couple of structures. Most code that does transactions doesn't need to know anything about the log, but this dependency means that they have to include xfs_log.h. Decouple the xfs_trans.h and xfs_log.h header files and clean up the includes to be in dependency order. In doing this, remove the direct include of xfs_trans_reserve.h from xfs_trans.h so that we remove the dependency between xfs_trans.h and xfs_mount.h. Hence the xfs_trans.h include can be moved to the indicate the actual dependencies other header files have on it. Note that these are kernel only header files, so this does not translate to any userspace changes at all. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r--fs/xfs/xfs_log_recover.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index cb3277e07844..832ba5d5eb3a 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -17,12 +17,12 @@
17 */ 17 */
18#include "xfs.h" 18#include "xfs.h"
19#include "xfs_fs.h" 19#include "xfs_fs.h"
20#include "xfs_format.h"
21#include "xfs_shared.h" 20#include "xfs_shared.h"
21#include "xfs_format.h"
22#include "xfs_log_format.h"
23#include "xfs_trans_resv.h"
22#include "xfs_bit.h" 24#include "xfs_bit.h"
23#include "xfs_log.h"
24#include "xfs_inum.h" 25#include "xfs_inum.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_mount.h" 28#include "xfs_mount.h"
@@ -34,11 +34,12 @@
34#include "xfs_btree.h" 34#include "xfs_btree.h"
35#include "xfs_dinode.h" 35#include "xfs_dinode.h"
36#include "xfs_inode.h" 36#include "xfs_inode.h"
37#include "xfs_trans.h"
37#include "xfs_inode_item.h" 38#include "xfs_inode_item.h"
38#include "xfs_alloc.h" 39#include "xfs_alloc.h"
39#include "xfs_ialloc.h" 40#include "xfs_ialloc.h"
41#include "xfs_log.h"
40#include "xfs_log_priv.h" 42#include "xfs_log_priv.h"
41#include "xfs_buf_item.h"
42#include "xfs_log_recover.h" 43#include "xfs_log_recover.h"
43#include "xfs_extfree_item.h" 44#include "xfs_extfree_item.h"
44#include "xfs_trans_priv.h" 45#include "xfs_trans_priv.h"
@@ -46,14 +47,10 @@
46#include "xfs_cksum.h" 47#include "xfs_cksum.h"
47#include "xfs_trace.h" 48#include "xfs_trace.h"
48#include "xfs_icache.h" 49#include "xfs_icache.h"
49#include "xfs_icreate_item.h"
50 50
51/* Need all the magic numbers and buffer ops structures from these headers */ 51/* Need all the magic numbers and buffer ops structures from these headers */
52#include "xfs_symlink.h"
53#include "xfs_da_btree.h" 52#include "xfs_da_btree.h"
54#include "xfs_dir2.h" 53#include "xfs_dir2.h"
55#include "xfs_attr_leaf.h"
56#include "xfs_attr_remote.h"
57 54
58#define BLK_AVG(blk1, blk2) ((blk1+blk2) >> 1) 55#define BLK_AVG(blk1, blk2) ((blk1+blk2) >> 1)
59 56