diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-05-02 15:53:43 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-05-02 15:53:43 -0400 |
commit | 35b7e476107e3d54f03384e0f2fa3dfd68933353 (patch) | |
tree | 51a7e7cffad309b0aa0d3d054d7ecc5b8be72298 /fs/btrfs/disk-io.c | |
parent | 090d18753c7fb73f7d846c3a89a50cd35136d144 (diff) |
Btrfs: fix page cache memory leak
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 354524adf984..5828a104dfef 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <linux/scatterlist.h> | 5 | #include <linux/scatterlist.h> |
6 | #include <linux/swap.h> | 6 | #include <linux/swap.h> |
7 | #include <linux/radix-tree.h> | 7 | #include <linux/radix-tree.h> |
8 | #include <linux/file.h> | 8 | #include <linux/writeback.h> |
9 | #include "ctree.h" | 9 | #include "ctree.h" |
10 | #include "disk-io.h" | 10 | #include "disk-io.h" |
11 | #include "transaction.h" | 11 | #include "transaction.h" |
@@ -694,7 +694,7 @@ static int free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root) | |||
694 | return 0; | 694 | return 0; |
695 | } | 695 | } |
696 | 696 | ||
697 | int del_fs_roots(struct btrfs_fs_info *fs_info) | 697 | static int del_fs_roots(struct btrfs_fs_info *fs_info) |
698 | { | 698 | { |
699 | int ret; | 699 | int ret; |
700 | struct btrfs_root *gang[8]; | 700 | struct btrfs_root *gang[8]; |
@@ -781,3 +781,7 @@ void btrfs_block_release(struct btrfs_root *root, struct buffer_head *buf) | |||
781 | brelse(buf); | 781 | brelse(buf); |
782 | } | 782 | } |
783 | 783 | ||
784 | void btrfs_btree_balance_dirty(struct btrfs_root *root) | ||
785 | { | ||
786 | balance_dirty_pages_ratelimited(root->fs_info->btree_inode->i_mapping); | ||
787 | } | ||