aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dir-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-05-02 15:53:43 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-05-02 15:53:43 -0400
commit35b7e476107e3d54f03384e0f2fa3dfd68933353 (patch)
tree51a7e7cffad309b0aa0d3d054d7ecc5b8be72298 /fs/btrfs/dir-item.c
parent090d18753c7fb73f7d846c3a89a50cd35136d144 (diff)
Btrfs: fix page cache memory leak
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/dir-item.c')
-rw-r--r--fs/btrfs/dir-item.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c
index 7a7e9846860a..00a28d90fea6 100644
--- a/fs/btrfs/dir-item.c
+++ b/fs/btrfs/dir-item.c
@@ -4,11 +4,12 @@
4#include "hash.h" 4#include "hash.h"
5#include "transaction.h" 5#include "transaction.h"
6 6
7struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle *trans, 7static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle
8 struct btrfs_root *root, 8 *trans,
9 struct btrfs_path *path, 9 struct btrfs_root *root,
10 struct btrfs_key *cpu_key, 10 struct btrfs_path *path,
11 u32 data_size) 11 struct btrfs_key *cpu_key,
12 u32 data_size)
12{ 13{
13 int ret; 14 int ret;
14 char *ptr; 15 char *ptr;