Btrfs: fix page cache memory leak
[linux-2.6-block.git] / fs / btrfs / transaction.c
index bdbf514c111f5a90505064fec2abd12768cce8ac..8bbe9107ff7e254b8f3607982fc3c5a303195e86 100644 (file)
@@ -199,8 +199,9 @@ struct dirty_root {
        struct btrfs_root *root;
 };
 
-int add_dirty_roots(struct btrfs_trans_handle *trans,
-                   struct radix_tree_root *radix, struct list_head *list)
+static int add_dirty_roots(struct btrfs_trans_handle *trans,
+                          struct radix_tree_root *radix,
+                          struct list_head *list)
 {
        struct dirty_root *dirty;
        struct btrfs_root *gang[8];
@@ -246,7 +247,8 @@ int add_dirty_roots(struct btrfs_trans_handle *trans,
        return 0;
 }
 
-int drop_dirty_roots(struct btrfs_root *tree_root, struct list_head *list)
+static int drop_dirty_roots(struct btrfs_root *tree_root,
+                           struct list_head *list)
 {
        struct dirty_root *dirty;
        struct btrfs_trans_handle *trans;