aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-12-02 09:54:17 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-02 09:54:17 -0500
commitb2950863c61bc24cf0f63bc05947d9d50663c4c0 (patch)
tree3005a034713fe86db2d64ab1b21fe8762f6a4b0c /fs/btrfs/tree-log.c
parent1ffa4f426c002161b7dbd58b297f5d0680e7dd6a (diff)
Btrfs: make things static and include the right headers
Shut up various sparse warnings about symbols that should be either static or have their declarations in scope. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index be4fc30a30e4..4fcfc8b1189b 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -23,6 +23,7 @@
23#include "locking.h" 23#include "locking.h"
24#include "print-tree.h" 24#include "print-tree.h"
25#include "compat.h" 25#include "compat.h"
26#include "tree-log.h"
26 27
27/* magic values for the inode_only field in btrfs_log_inode: 28/* magic values for the inode_only field in btrfs_log_inode:
28 * 29 *
@@ -78,7 +79,7 @@ static int __btrfs_log_inode(struct btrfs_trans_handle *trans,
78 * tree of log tree roots. This must be called with a tree log transaction 79 * tree of log tree roots. This must be called with a tree log transaction
79 * running (see start_log_trans). 80 * running (see start_log_trans).
80 */ 81 */
81int btrfs_add_log_tree(struct btrfs_trans_handle *trans, 82static int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
82 struct btrfs_root *root) 83 struct btrfs_root *root)
83{ 84{
84 struct btrfs_key key; 85 struct btrfs_key key;
@@ -1934,7 +1935,7 @@ static int walk_log_tree(struct btrfs_trans_handle *trans,
1934 return ret; 1935 return ret;
1935} 1936}
1936 1937
1937int wait_log_commit(struct btrfs_root *log) 1938static int wait_log_commit(struct btrfs_root *log)
1938{ 1939{
1939 DEFINE_WAIT(wait); 1940 DEFINE_WAIT(wait);
1940 u64 transid = log->fs_info->tree_log_transid; 1941 u64 transid = log->fs_info->tree_log_transid;